mirror of https://github.com/mkerrisk/man-pages
ptrace.2: PTRACE_EVENT_STOP does not always report SIGTRAP
PTRACE_EVENT_STOP does not always report SIGTRAP, can be the signal which stopped us While at it, fix an obvious copy/paste error in PTRACE_GET_SYSCALL_INFO description. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
2b6923ba65
commit
302c512cef
|
@ -1096,7 +1096,7 @@ system call exit stop.
|
||||||
.TP
|
.TP
|
||||||
.BR PTRACE_SYSCALL_INFO_SECCOMP
|
.BR PTRACE_SYSCALL_INFO_SECCOMP
|
||||||
The
|
The
|
||||||
.I exit
|
.I seccomp
|
||||||
component of the union contains information relating to a
|
component of the union contains information relating to a
|
||||||
.B PTRACE_EVENT_SECCOMP
|
.B PTRACE_EVENT_SECCOMP
|
||||||
stop.
|
stop.
|
||||||
|
@ -1566,13 +1566,16 @@ returning with
|
||||||
and
|
and
|
||||||
.I WSTOPSIG(status)
|
.I WSTOPSIG(status)
|
||||||
returns
|
returns
|
||||||
.BR SIGTRAP .
|
.BR SIGTRAP
|
||||||
|
(or for
|
||||||
|
.BR PTRACE_EVENT_STOP ,
|
||||||
|
returns the stopping signal if tracee is in a group-stop).
|
||||||
An additional bit is set in the higher byte of the status word:
|
An additional bit is set in the higher byte of the status word:
|
||||||
the value
|
the value
|
||||||
.I status>>8
|
.I status>>8
|
||||||
will be
|
will be
|
||||||
.PP
|
.PP
|
||||||
(SIGTRAP | PTRACE_EVENT_foo << 8).
|
((PTRACE_EVENT_foo<<8) | SIGTRAP).
|
||||||
.PP
|
.PP
|
||||||
The following events exist:
|
The following events exist:
|
||||||
.TP
|
.TP
|
||||||
|
|
Loading…
Reference in New Issue