summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2001-09-03 09:42:40 +0000
committermurray <murray@FreeBSD.org>2001-09-03 09:42:40 +0000
commit66f042086196b8865a9ff402202a9b6c93ab3216 (patch)
tree24e5b2720ec6ff7273f82d8298dbe2bacfe3423c /lib
parentc333e22830171a2cd745270e3f08b63c1120c16c (diff)
downloadFreeBSD-src-66f042086196b8865a9ff402202a9b6c93ab3216.zip
FreeBSD-src-66f042086196b8865a9ff402202a9b6c93ab3216.tar.gz
PT_STEP in ptrace(2) man page is described as 'addr and data fields
are not used'. This is incorrect, as addr must be passed (caddr_t)1 to do anything useful. The source for gdb and a short test program will confirm that this man page was in error. PR: docs/27758 Submitted by: Jiangyi Liu <jyliu@163.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/ptrace.26
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2
index e42a7db..a31d146 100644
--- a/lib/libc/sys/ptrace.2
+++ b/lib/libc/sys/ptrace.2
@@ -103,11 +103,11 @@ provides a signal number to be delivered to the traced process as it
resumes execution, or 0 if no signal is to be sent.
.It Dv PT_STEP
The traced process is single stepped one instruction.
-The
.Fa addr
-and
+should be passed
+.Po Vt caddr_t Pc Ns 1 .
.Fa data
-fields are not used.
+is not used.
.It Dv PT_KILL
The traced process terminates, as if
.Dv PT_CONTINUE
OpenPOWER on IntegriCloud