Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/sys ptrace(2): Document PT_GETVECREGS and PT_SETVEC...



details:   https://anonhg.NetBSD.org/src/rev/8a931d3d0f35
branches:  trunk
changeset: 819740:8a931d3d0f35
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Dec 15 15:03:17 2016 +0000

description:
ptrace(2): Document PT_GETVECREGS and PT_SETVECREGS (ppc ports specific)

Sponsored by <The NetBSD Foundation>

diffstat:

 lib/libc/sys/ptrace.2 |  29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)

diffs (43 lines):

diff -r aa5221b0f2e8 -r 8a931d3d0f35 lib/libc/sys/ptrace.2
--- a/lib/libc/sys/ptrace.2     Thu Dec 15 14:49:46 2016 +0000
+++ b/lib/libc/sys/ptrace.2     Thu Dec 15 15:03:17 2016 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: ptrace.2,v 1.43 2016/12/15 14:49:46 kamil Exp $
+.\"    $NetBSD: ptrace.2,v 1.44 2016/12/15 15:03:17 kamil Exp $
 .\"
 .\" This file is in the public domain.
 .Dd November 1, 2016
@@ -417,6 +417,33 @@
 argument contains the LWP ID of the thread whose registers are to
 be written.
 If zero is supplied, the first thread of the process is written.
+.It Dv PT_GETVECREGS
+This request reads the traced process' vector registers into
+the
+.Dq Li "struct vreg"
+(defined in
+.In machine/reg.h )
+pointed to by
+.Fa addr .
+The
+.Fa data
+argument contains the LWP ID of the thread whose registers are to
+be read.
+If zero is supplied, the first thread of the process is read.
+.It Dv PT_SETVECREGS
+This request is the converse of
+.Dv PT_GETVECREGS ;
+it loads the traced process' vector registers from the
+.Dq Li "struct vreg"
+(defined in
+.In machine/reg.h )
+pointed to by
+.Fa addr .
+The
+.Fa data
+argument contains the LWP ID of the thread whose registers are to
+be written.
+If zero is supplied, the first thread of the process is written.
 .El
 .Sh ERRORS
 Some requests can cause



Home | Main Index | Thread Index | Old Index