ptrace.2: Document PTRACE_GETEVENTMSG for PTRACE_EVENT_EXEC

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Denys Vlasenko 2012-03-24 07:49:32 +13:00 committed by Michael Kerrisk
parent 0597933fb0
commit b16d33ef72
1 changed files with 9 additions and 1 deletions

View File

@ -374,6 +374,10 @@ value such that
status>>8 == (SIGTRAP | (PTRACE_EVENT_EXEC<<8))
.fi
If execing thread is not a thread group leader, thread ID
is reset to thread group leader's ID before this stop.
Since Linux 3.0, the former thread ID can be retrieved with
.BR PTRACE_GETEVENTMSG .
.TP
.BR PTRACE_O_TRACEVFORKDONE " (since Linux 2.5.60)"
Stop the tracee at the completion of the next
@ -1018,6 +1022,9 @@ can be used to retrieve the new thread's ID.
.B PTRACE_EVENT_EXEC
Stop before return from
.BR execve (2).
Since Linux 3.0,
.BR PTRACE_GETEVENTMSG
returns the former thread ID.
.TP
.B PTRACE_EVENT_EXIT
Stop before exit (including death from
@ -1039,7 +1046,8 @@ to finish exiting.
on
.B PTRACE_EVENT
stops returns
.B SIGTRAP in
.B SIGTRAP
in
.IR si_signo ,
with
.I si_code