Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys Correction in ptrace(2) about operations that e...



details:   https://anonhg.NetBSD.org/src/rev/64c34b172b94
branches:  trunk
changeset: 822790:64c34b172b94
user:      kamil <kamil%NetBSD.org@localhost>
date:      Fri Apr 07 00:56:14 2017 +0000

description:
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>

diffstat:

 lib/libc/sys/ptrace.2 |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (28 lines):

diff -r 3713f527a463 -r 64c34b172b94 lib/libc/sys/ptrace.2
--- a/lib/libc/sys/ptrace.2     Thu Apr 06 20:44:39 2017 +0000
+++ b/lib/libc/sys/ptrace.2     Fri Apr 07 00:56:14 2017 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index