From 626ff2081fd054b971c71aedddcd45f42efb406a Mon Sep 17 00:00:00 2001 From: David Schultz Date: Sat, 20 Nov 2004 02:32:42 +0000 Subject: [PATCH] Remove the uarea column from the DDB 'ps' display, and from grog's gdb scripts. Reviewed by: arch@ --- sys/ddb/db_ps.c | 6 +++--- tools/debugscripts/gdbinit.i386 | 6 +++--- tools/debugscripts/gdbinit.kernel | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c index b03382d589b..b5175b7c280 100644 --- a/sys/ddb/db_ps.c +++ b/sys/ddb/db_ps.c @@ -66,7 +66,7 @@ db_ps(dummy1, dummy2, dummy3, dummy4) p = &proc0; db_setup_paging(db_simple_pager, &quit, db_lines_per_page); - db_printf(" pid proc uarea uid ppid pgrp flag stat wmesg wchan cmd\n"); + db_printf(" pid proc uid ppid pgrp flag stat wmesg wchan cmd\n"); while (--np >= 0 && !quit) { if (p == NULL) { printf("oops, ran out of processes early!\n"); @@ -95,8 +95,8 @@ db_ps(dummy1, dummy2, dummy3, dummy4) state = "Unkn"; break; } - db_printf("%5d %8p %8p %4d %5d %5d %07x %s", - p->p_pid, (volatile void *)p, (void *)p->p_uarea, + db_printf("%5d %8p %4d %5d %5d %07x %s", + p->p_pid, (volatile void *)p, p->p_ucred != NULL ? p->p_ucred->cr_ruid : 0, pp->p_pid, p->p_pgrp != NULL ? p->p_pgrp->pg_id : 0, p->p_flag, state); diff --git a/tools/debugscripts/gdbinit.i386 b/tools/debugscripts/gdbinit.i386 index 38a3c99fbd6..e02b2063f50 100644 --- a/tools/debugscripts/gdbinit.i386 +++ b/tools/debugscripts/gdbinit.i386 @@ -301,16 +301,16 @@ define btpa set $nproc = nprocs set $aproc = allproc.lh_first set $proc = allproc.lh_first - printf " pid proc addr uid ppid pgrp flag stat comm wchan\n" + printf " pid proc uid ppid pgrp flag stat comm wchan\n" while (--$nproc >= 0) set $pptr = $proc.p_pptr if ($pptr == 0) set $pptr = $proc end if ($proc.p_stat) - printf "%5d %08x %08x %4d %5d %5d %06x %d %-10s ", \ + printf "%5d %08x %4d %5d %5d %06x %d %-10s ", \ $proc.p_pid, $aproc, \ - $proc.p_uarea, $proc.p_cred->p_ruid, $pptr->p_pid, \ + $proc.p_cred->p_ruid, $pptr->p_pid, \ $proc.p_pgrp->pg_id, $proc.p_flag, $proc.p_stat, \ &$proc.p_comm[0] if ($proc.p_wchan) diff --git a/tools/debugscripts/gdbinit.kernel b/tools/debugscripts/gdbinit.kernel index 4d0d1401119..91d85c22a57 100644 --- a/tools/debugscripts/gdbinit.kernel +++ b/tools/debugscripts/gdbinit.kernel @@ -199,7 +199,7 @@ define ps set $nproc = nprocs set $aproc = allproc.lh_first set $proc = allproc.lh_first - printf " pid proc addr uid ppid pgrp flag stat comm wchan\n" + printf " pid proc uid ppid pgrp flag stat comm wchan\n" while (--$nproc >= 0) set $pptr = $proc.p_pptr if ($pptr == 0) @@ -208,9 +208,9 @@ define ps if ($proc.p_state) set $thread = $proc->p_threads.tqh_first while ($thread) - printf "%5d %08x %08x %4d %5d %5d %06x %d %-10s ", \ + printf "%5d %08x %4d %5d %5d %06x %d %-10s ", \ $proc.p_pid, $aproc, \ - $proc.p_uarea, $proc.p_ucred->cr_ruid, $pptr->p_pid, \ + $proc.p_ucred->cr_ruid, $pptr->p_pid, \ $proc.p_pgrp->pg_id, $proc.p_flag, $proc.p_state, \ &$proc.p_comm[0] if ($thread.td_wchan)