aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/ptrace.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2010-07-04 11:48:30 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2010-07-04 11:48:30 +0000
commit8a26007903226414add55b901f79246ee265874c (patch)
tree71019082a5835ccc7a2f026d2a4092c1c06dc96a /sys/sys/ptrace.h
parent67322a4cd2b250e50fe0b495e89596a526cb6115 (diff)
downloadsrc-8a26007903226414add55b901f79246ee265874c.tar.gz
src-8a26007903226414add55b901f79246ee265874c.zip
Extend ptrace(PT_LWPINFO) to report siginfo for the signal that caused
debugee stop. The change should keep the ABI. Take care of compat32. Discussed with: davidxu, jhb MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=209688
Diffstat (limited to 'sys/sys/ptrace.h')
-rw-r--r--sys/sys/ptrace.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/ptrace.h b/sys/sys/ptrace.h
index a6dbe2cad3e8..f4b25d438b05 100644
--- a/sys/sys/ptrace.h
+++ b/sys/sys/ptrace.h
@@ -33,7 +33,7 @@
#ifndef _SYS_PTRACE_H_
#define _SYS_PTRACE_H_
-#include <sys/_sigset.h>
+#include <sys/signal.h>
#include <machine/reg.h>
#define PT_TRACE_ME 0 /* child declares it's being traced */
@@ -102,8 +102,10 @@ struct ptrace_lwpinfo {
#define PL_FLAG_SCE 0x04 /* syscall enter point */
#define PL_FLAG_SCX 0x08 /* syscall leave point */
#define PL_FLAG_EXEC 0x10 /* exec(2) succeeded */
+#define PL_FLAG_SI 0x20 /* siginfo is valid */
sigset_t pl_sigmask; /* LWP signal mask */
sigset_t pl_siglist; /* LWP pending signal */
+ struct __siginfo pl_siginfo; /* siginfo for signal */
};
/* Argument structure for PT_VM_ENTRY. */