Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/sys Include pe_lwp member in 'struct ptrace_state'



details:   https://anonhg.NetBSD.org/src/rev/fa1224fc116f
branches:  trunk
changeset: 458531:fa1224fc116f
user:      mgorny <mgorny%NetBSD.org@localhost>
date:      Tue Jul 30 20:18:11 2019 +0000

description:
Include pe_lwp member in 'struct ptrace_state'

Reviewed by kamil.

diffstat:

 lib/libc/sys/ptrace.2 |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 275add36dc7e -r fa1224fc116f lib/libc/sys/ptrace.2
--- a/lib/libc/sys/ptrace.2     Tue Jul 30 16:49:20 2019 +0000
+++ b/lib/libc/sys/ptrace.2     Tue Jul 30 20:18:11 2019 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: ptrace.2,v 1.79 2019/07/11 03:30:01 mgorny Exp $
+.\"    $NetBSD: ptrace.2,v 1.80 2019/07/30 20:18:11 mgorny Exp $
 .\"
 .\" This file is in the public domain.
 .Dd July 11, 2019
@@ -519,11 +519,14 @@
 that stopped the traced process.
 The information is reported in a
 .Vt struct ptrace_state
-defined as:
+that is equivalent to:
 .Bd -literal -offset indent
 typedef struct ptrace_state {
        int     pe_report_event;
-       pid_t   pe_other_pid;
+       union {
+               pid_t   pe_other_pid;
+               lwpid_t pe_lwp;
+       };
 } ptrace_state_t;
 .Ed
 .Pp



Home | Main Index | Thread Index | Old Index