diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-08-16 20:19:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-08-16 20:19:05 +0000 |
commit | 27067774dce3388702a4cf744d7096c6fb71b688 (patch) | |
tree | 56300949abd050b3cd2e23d29210d2a567bc8aec /lib/libc/sys/ptrace.2 | |
parent | 44be0a8ea517cbe7a9140bca20e1e93228ac0a04 (diff) | |
parent | 915a263ea24ab051bb57674a4d6f5ffe4ef0d5b5 (diff) | |
download | src-27067774dce3388702a4cf744d7096c6fb71b688.tar.gz src-27067774dce3388702a4cf744d7096c6fb71b688.zip |
Merge ^/head r303250 through r304235.
Notes
Notes:
svn path=/projects/clang390-import/; revision=304236
Diffstat (limited to 'lib/libc/sys/ptrace.2')
-rw-r--r-- | lib/libc/sys/ptrace.2 | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2 index fc5382d1193c..74798d27cfff 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 July 18, 2016 +.Dd July 28, 2016 .Dt PTRACE 2 .Os .Sh NAME @@ -74,11 +74,15 @@ A traced process may report additional signal stops corresponding to events in the traced process. These additional signal stops are reported as .Dv SIGTRAP +or +.Dv SIGSTOP signals. The tracing process can use the .Dv PT_LWPINFO request to determine which events are associated with a .Dv SIGTRAP +or +.Dv SIGSTOP signal. Note that multiple events may be associated with a single signal. For example, events indicated by the @@ -88,10 +92,16 @@ and .Dv PL_FLAG_EXEC flags are also reported as a system call exit event .Pq Dv PL_FLAG_SCX . +The signal stop for a new child process enabled via +.Dv PTRACE_FORK +will report a +.Dv SIGSTOP +signal. +All other additional signal stops use +.Dv SIGTRAP . .Pp Each traced process has a tracing event mask. An event in the traced process only reports a -.Dv SIGTRAP signal stop if the corresponding flag is set in the tracing event mask. The current set of tracing event flags include: .Bl -tag -width ".Dv PTRACE_SYSCALL" |