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.
This commit is contained in:
cgd 1997-04-16 00:58:26 +00:00
parent ea528012b3
commit faccc00a5a
1 changed files with 3 additions and 3 deletions

View File

@ -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)