summaryrefslogtreecommitdiff
path: root/sys/gdbscripts
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1997-04-16 00:58:26 +0000
committercgd <cgd@NetBSD.org>1997-04-16 00:58:26 +0000
commitfaccc00a5a0b9df05a648d689515df23e02625e5 (patch)
tree77bedadf1aeb1024e5d901d28c9d52c2e01454b7 /sys/gdbscripts
parentea528012b30cc3c3ffcc7d45b085bf44675d704c (diff)
widen proc pointer and wchan pointer fields from 10 to 18 characters, so
that pointers on 64-bit systems are printed properly. This means that there'll be a lot of extra space on 32-bit systems, but gdb's printf doesn't support * for width or precision specifiers, so it can't really be done much better.
Diffstat (limited to 'sys/gdbscripts')
-rw-r--r--sys/gdbscripts/xps6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/gdbscripts/xps b/sys/gdbscripts/xps
index 152e7f1aaee..4fcd13eb910 100644
--- a/sys/gdbscripts/xps
+++ b/sys/gdbscripts/xps
@@ -1,4 +1,4 @@
-# $NetBSD: xps,v 1.2 1997/02/12 23:35:12 gwr Exp $
+# $NetBSD: xps,v 1.3 1997/04/16 00:58:26 cgd Exp $
# xps
# kernel ps
@@ -18,9 +18,9 @@ define xps
set $p = zombproc.lh_first
end
- printf " proc pid flag st wchan comm\n"
+ printf " proc pid flag st wchan comm\n"
while ($p)
- printf "%#10x %5d %8x %2x %#10x %s", $p, $p->p_pid, \
+ printf "%#18lx %5d %8x %2x %#18lx %s", $p, $p->p_pid, \
$p->p_flag, $p->p_stat, $p->p_wchan, \
(char *) $p->p_comm
if ($p->p_wmesg)