Module Name: src
Committed By: eeh
Date: Wed Nov 18 18:05:51 UTC 2009
Modified Files:
src/sys/gdbscripts: procs
Log Message:
Add the lwp address so you don't have to leave gdb and use ps to grab an lwp's
stack.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/gdbscripts/procs
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/gdbscripts/procs
diff -u src/sys/gdbscripts/procs:1.1 src/sys/gdbscripts/procs:1.2
--- src/sys/gdbscripts/procs:1.1 Wed Feb 20 20:56:35 2008
+++ src/sys/gdbscripts/procs Wed Nov 18 18:05:51 2009
@@ -1,4 +1,4 @@
-# $NetBSD: procs,v 1.1 2008/02/20 20:56:35 ad Exp $
+# $NetBSD: procs,v 1.2 2009/11/18 18:05:51 eeh Exp $
define procs
set $i = 0
@@ -8,12 +8,12 @@
set $p = allproc.lh_first
end
if ($p)
- printf " proc pid flag stat nlwps comm\n"
+ printf " proc pid flag stat nlwps lwp comm\n"
end
while ($p)
- printf "%16lx %5d %8x %4x %5d %s", \
+ printf "%16lx %5d %8x %4x %5d %16lx %s", \
$p, $p->p_pid, \
- $p->p_flag, $p->p_stat, $p->p_nlwps, \
+ $p->p_flag, $p->p_stat, $p->p_nlwps, $p->p_lwps.lh_first, \
(char *) $p->p_comm
printf "\n"
set $p = $p->p_list.le_next