aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiomidis Spinellis <dds@FreeBSD.org>2009-03-27 11:03:02 +0000
committerDiomidis Spinellis <dds@FreeBSD.org>2009-03-27 11:03:02 +0000
commit15ced2cfb3a575199778a6ba9b28e83627f4bc7c (patch)
tree52489d98928c53e62a6f4de6ff96b18c2755ba59
parentee94c7ef01fd2441080ae2fb6a60dda14279abc5 (diff)
downloadsrc-15ced2cfb3a575199778a6ba9b28e83627f4bc7c.tar.gz
src-15ced2cfb3a575199778a6ba9b28e83627f4bc7c.zip
Document missing requests.
Notes
Notes: svn path=/head/; revision=190464
-rw-r--r--lib/libc/sys/ptrace.220
1 files changed, 18 insertions, 2 deletions
diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2
index 44fc1eafe13e..9d8f5507c41f 100644
--- a/lib/libc/sys/ptrace.2
+++ b/lib/libc/sys/ptrace.2
@@ -2,7 +2,7 @@
.\" $NetBSD: ptrace.2,v 1.2 1995/02/27 12:35:37 cgd Exp $
.\"
.\" This file is in the public domain.
-.Dd April 9, 2007
+.Dd March 27, 2009
.Dt PTRACE 2
.Os
.Sh NAME
@@ -77,7 +77,8 @@ special case noted below, all
.Fn ptrace
calls are made by the tracing process, and the
.Fa pid
-argument specifies the process ID of the traced process.
+argument specifies the process ID of the traced process
+or a corresponding thread ID.
The
.Fa request
argument
@@ -311,6 +312,21 @@ with the array size specified by
The return value from
.Fn ptrace
is the count of array entries filled in.
+.It PT_SETSTEP
+This request will turn on single stepping of the specified process.
+.It PT_CLEARSTEP
+This request will turn off single stepping of the specified process.
+.It PT_SUSPEND
+This request will suspend the specified thread.
+.It PT_RESUME
+This request will resume the specified thread.
+.It PT_TO_SCE
+This request will trace the specified process on each system call entry.
+.It PT_TO_SCX
+This request will trace the specified process on each system call exit.
+.It PT_SYSCALL
+This request will trace the specified process
+on each system call entry and exit.
.El
.Pp
Additionally, machine-specific requests can exist.