From 4d55497aedef977e5b0a0b75a164307980eca8ed Mon Sep 17 00:00:00 2001 From: eeh Date: Wed, 18 Nov 2009 18:05:51 +0000 Subject: [PATCH] Add the lwp address so you don't have to leave gdb and use ps to grab an lwp's stack. --- sys/gdbscripts/procs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/gdbscripts/procs b/sys/gdbscripts/procs index 3de3113d49df..3db8303d515d 100644 --- a/sys/gdbscripts/procs +++ b/sys/gdbscripts/procs @@ -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 @@ define procs 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