diff options
author | kib <kib@FreeBSD.org> | 2010-07-10 14:31:44 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-07-10 14:31:44 +0000 |
commit | ea23c5a7f9df77cac31a9d961576787d6fad6e2f (patch) | |
tree | 77cc4e9686d1eed65ad62a816453a77080073e0d /lib/libc/sys | |
parent | 20380dbd90760a2188c8fe4320e393f5dc418c6e (diff) | |
download | FreeBSD-src-ea23c5a7f9df77cac31a9d961576787d6fad6e2f.zip FreeBSD-src-ea23c5a7f9df77cac31a9d961576787d6fad6e2f.tar.gz |
Document pl_siginfo and PT_FLAG_SI for PT_LWPINFO.
MFC after: 1 month
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/ptrace.2 | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2 index ae0197f..26a55d6 100644 --- a/lib/libc/sys/ptrace.2 +++ b/lib/libc/sys/ptrace.2 @@ -2,7 +2,7 @@ .\" $NetBSD: ptrace.2,v 1.2 1995/02/27 12:35:37 cgd Exp $ .\" .\" This file is in the public domain. -.Dd May 24, 2010 +.Dd July 10, 2010 .Dt PTRACE 2 .Os .Sh NAME @@ -294,6 +294,7 @@ struct ptrace_lwpinfo { int pl_flags; sigset_t pl_sigmask; sigset_t pl_siglist; + siginfo_t pl_siginfo; }; .Ed .Pp @@ -338,13 +339,28 @@ program being executed by debuggee process has been changed by succesful execution of a system call from the .Fn execve 2 family. +.It PL_FLAG_SI +Indicates that +.Va pl_siginfo +member of +.Vt "struct ptrace_lwpinfo" +contains valid information. .El .It pl_sigmask The current signal mask of the LWP .It pl_siglist -The current pending set of signals for the LWP. Note that signals that -are delivered to the process would not appear on an LWP siglist until -the thread is selected for delivery. +The current pending set of signals for the LWP. +Note that signals that are delivered to the process would not appear +on an LWP siglist until the thread is selected for delivery. +.It pl_siginfo +The siginfo that accompanies the signal pending. +Only valid for +.Dv PL_EVENT_SIGNAL +kind of stop, when +.Va pl_flags +has +.Dv PL_FLAG_SI +set. .El .It PT_GETNUMLWPS This request returns the number of kernel threads associated with the |