Module Name: src Committed By: kamil Date: Fri Apr 7 00:56:14 UTC 2017
Modified Files: src/lib/libc/sys: ptrace.2 Log Message: Correction in ptrace(2) about operations that emit signals PT_STEP and PT_DETACH cannot emit signals PT_CONTINUE and PT_SYSCALL can emit signals Pointed out by <chs> To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/lib/libc/sys/ptrace.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/sys/ptrace.2 diff -u src/lib/libc/sys/ptrace.2:1.62 src/lib/libc/sys/ptrace.2:1.63 --- src/lib/libc/sys/ptrace.2:1.62 Thu Feb 23 08:11:09 2017 +++ src/lib/libc/sys/ptrace.2 Fri Apr 7 00:56:14 2017 @@ -1,7 +1,7 @@ -.\" $NetBSD: ptrace.2,v 1.62 2017/02/23 08:11:09 wiz Exp $ +.\" $NetBSD: ptrace.2,v 1.63 2017/04/07 00:56:14 kamil Exp $ .\" .\" This file is in the public domain. -.Dd February 23, 2017 +.Dd April 7, 2017 .Dt PTRACE 2 .Os .Sh NAME @@ -535,11 +535,10 @@ argument should be set to .Li sizeof(struct ptrace_siginfo) . .Pp In order to pass faked signal to the tracee, -the signal type must match the signal passed to process with -.Dv PT_CONTINUE , -.Dv PT_DETACH +the signal type must match the signal passed to the process with +.Dv PT_CONTINUE or -.Dv PT_STEP . +.Dv PT_SYSCALL . .It Dv PT_GET_SIGINFO This request can be used to determine signal information that was received by a debugger