Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/gdbscripts Add the lwp address so you don't have to leav...
details: https://anonhg.NetBSD.org/src/rev/d76b7b9a712d
branches: trunk
changeset: 749127:d76b7b9a712d
user: eeh <eeh%NetBSD.org@localhost>
date: Wed Nov 18 18:05:51 2009 +0000
description:
Add the lwp address so you don't have to leave gdb and use ps to grab an lwp's
stack.
diffstat:
sys/gdbscripts/procs | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (25 lines):
diff -r a94c1d0297b1 -r d76b7b9a712d sys/gdbscripts/procs
--- a/sys/gdbscripts/procs Wed Nov 18 18:05:19 2009 +0000
+++ b/sys/gdbscripts/procs Wed Nov 18 18:05:51 2009 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index