signals: demultiplexing SIGTRAP signal
authorSrinivasa Ds <srinivasa@in.ibm.com>
Tue, 23 Sep 2008 09:53:52 +0000 (15:23 +0530)
committerIngo Molnar <mingo@elte.hu>
Tue, 23 Sep 2008 11:26:52 +0000 (13:26 +0200)
commitda654b74bda14c45a7d98c731bf3c1a43b6b74e2
treee3cc6f1a1f7300c07e59c9091cd2ede0c5da8d4d
parent101d5b713700b902b1c200cdd1925c3cb7d34567
signals: demultiplexing SIGTRAP signal

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.

Signed-off-by: Srinivasa DS <srinivasa@in.ibm.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: akpm@linux-foundation.org
Cc: paulus@samba.org
Cc: linuxppc-dev@ozlabs.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/ia64/include/asm/siginfo.h
arch/powerpc/include/asm/siginfo.h
arch/x86/kernel/ptrace.c
arch/x86/kernel/traps_32.c
arch/x86/kernel/traps_64.c
include/asm-generic/siginfo.h
include/asm-parisc/siginfo.h
include/asm-x86/ptrace.h
include/asm-x86/traps.h