Module Name:    src
Committed By:   kamil
Date:           Sat Jan  7 01:29:18 UTC 2017

Modified Files:
        src/lib/libc/sys: ptrace.2

Log Message:
ptrace(2): Document addr and data argument usage for PT_GET_PROCESS_STATE

The PT_GET_PROCESS_STATE call in ptrace(2) has the following usage of addr
and data:

    A pointer to this structure is passed in addr.  The data
    argument should be set to sizeof(struct ptrace_event).

Sponsored by <The NetBSD Foundation>


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 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.46 src/lib/libc/sys/ptrace.2:1.47
--- src/lib/libc/sys/ptrace.2:1.46	Thu Dec 29 22:17:51 2016
+++ src/lib/libc/sys/ptrace.2	Sat Jan  7 01:29:18 2017
@@ -1,7 +1,7 @@
-.\"	$NetBSD: ptrace.2,v 1.46 2016/12/29 22:17:51 kamil Exp $
+.\"	$NetBSD: ptrace.2,v 1.47 2017/01/07 01:29:18 kamil Exp $
 .\"
 .\" This file is in the public domain.
-.Dd November 1, 2016
+.Dd January 7, 2016
 .Dt PTRACE 2
 .Os
 .Sh NAME
@@ -309,7 +309,7 @@ pointed to by
 The
 .Fa data
 argument should be set to
-.Li sizeof(struct ptrace_event) .
+.Li sizeof(struct ptrace_state) .
 .It Dv PT_GET_PROCESS_STATE
 This request reads the state information associated with the event
 that stopped the traced process.
@@ -322,6 +322,13 @@ typedef struct ptrace_state {
 	pid_t	pe_other_pid;
 } ptrace_state_t;
 .Ed
+.Pp
+A pointer to this structure is passed in
+.Fa addr .
+The
+.Fa data
+argument should be set to
+.Li sizeof(struct ptrace_event) .
 .El
 .Pp
 Additionally, the following requests exist but are

Reply via email to