diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2020-01-21 19:20:45 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2020-01-22 01:14:19 +0100 |
| commit | 302c512cef4a5ecb40f748758dd611b053a3654a (patch) | |
| tree | 986aa55a911a5c6911bdf3f93e5bc35a6200ff00 | |
| parent | 2b6923ba65a980d242d7473f3e024ff7bc8ad7c6 (diff) | |
| download | man-pages-302c512cef4a5ecb40f748758dd611b053a3654a.tar.gz | |
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>
| -rw-r--r-- | man2/ptrace.2 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/man2/ptrace.2 b/man2/ptrace.2 index 0ea9ad7f20..a50b11b98d 100644 --- a/man2/ptrace.2 +++ b/man2/ptrace.2 @@ -1096,7 +1096,7 @@ system call exit stop. .TP .BR PTRACE_SYSCALL_INFO_SECCOMP The -.I exit +.I seccomp component of the union contains information relating to a .B PTRACE_EVENT_SECCOMP stop. @@ -1566,13 +1566,16 @@ returning with and .I WSTOPSIG(status) 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: the value .I status>>8 will be .PP - (SIGTRAP | PTRACE_EVENT_foo << 8). + ((PTRACE_EVENT_foo<<8) | SIGTRAP). .PP The following events exist: .TP |
