summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormgorny <mgorny@NetBSD.org>2019-07-10 19:51:14 +0000
committermgorny <mgorny@NetBSD.org>2019-07-10 19:51:14 +0000
commit1efb6021def3e32aa6520c8e6bd995bfef19b248 (patch)
tree7be31e89c1f9fc9e2aca93063f7870120e3e0b7d /lib
parentfc758f3e9b97cbcef66cc2cd58b1531b17a21293 (diff)
Improve/fix doc of PT_SETSTEP and PT_CLEARSTEP.
Reviewed by kamil.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/ptrace.221
1 files changed, 17 insertions, 4 deletions
diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2
index 78985b2140e..b07fd89b1dc 100644
--- a/lib/libc/sys/ptrace.2
+++ b/lib/libc/sys/ptrace.2
@@ -1,7 +1,7 @@
-.\" $NetBSD: ptrace.2,v 1.77 2019/07/10 19:03:47 mgorny Exp $
+.\" $NetBSD: ptrace.2,v 1.78 2019/07/10 19:51:14 mgorny Exp $
.\"
.\" This file is in the public domain.
-.Dd June 26, 2019
+.Dd July 10, 2019
.Dt PTRACE 2
.Os
.Sh NAME
@@ -632,9 +632,22 @@ If the
argument is less than zero, it contains the negative of the LWP ID of
the thread to be stepped, and only that thread executes.
.It Dv PT_SETSTEP
-This request will turn on single stepping of the specified process.
+This request will turn on single stepping of the specified thread.
+.Fa addr
+is unused.
+.Fa data
+specifies the LWP ID of the thread to be stepped.
+The execution does not continue until
+.Dv PT_CONTINUE
+is issued.
+This request permits combining single-stepping with sending syscalls and
+.Dv PT_SYSCALL .
.It Dv PT_CLEARSTEP
-This request will turn off single stepping of the specified process.
+This request will turn off single stepping of the specified thread.
+.Fa addr
+is unused.
+.Fa data
+specifies the LWP ID of the thread to disable single-stepping.
.It Dv PT_GETREGS
This request reads the traced process' machine registers into the
.Vt struct reg