Subject: Re: [RFC][PATCH] Demultiplexing SIGTRAP signal

From: Ingo Molnar <[email-masked]>
Date: Tue, 23 Sep 2008 13:30:01 +0200

* Ingo Molnar <[email-masked]> wrote:

> > Currently a SIGTRAP can denote any one of below reasons.
> > 	- Breakpoint hit
> > 	- H/W debug register hit
> > 	- Single step
> > 	- Signal sent through kill() or rasie()
> > 
> > Architectures like powerpc/parisc provides infrastructure to 
> > demultiplex SIGTRAP signal by passing down the information for 
> > receiving SIGTRAP through si_code of siginfot_t structure. Here is an 
> > attempt is generalise this infrastructure by extending it to x86 and 
> > x86_64 archs.
> 
> applied to [the new topic] tip/core/signal, thanks Srinivasa! There 
> are some other pending x86 signal changes already, so i based 
> tip/core/signal on tip/x86/signal.

-tip testing found the following build error with the attached config:

In file included from arch/x86/mm/fault.c:41:
include/asm/traps.h: In function ‘get_si_code’:
include/asm/traps.h:41: error: ‘DR_STEP’ undeclared (first use in this function)
include/asm/traps.h:41: error: (Each undeclared identifier is reported only once
include/asm/traps.h:41: error: for each function it appears in.)
include/asm/traps.h:43: error: ‘DR_TRAP0’ undeclared (first use in this function)
include/asm/traps.h:43: error: ‘DR_TRAP1’ undeclared (first use in this function)
include/asm/traps.h:43: error: ‘DR_TRAP2’ undeclared (first use in this function)
include/asm/traps.h:43: error: ‘DR_TRAP3’ undeclared (first use in this function)

	Ingo