看板 FB_bugs 關於我們 聯絡資訊
The following reply was made to PR kern/133775; it has been noted by GNATS. From: Maxim Konovalov <maxim@macomnet.ru> To: Anton Yuzhaninov <citrin@citirn.ru> Cc: bug-followup@freebsd.org Subject: Re: kern/133775: [patch] gdb debugscripts: fix proc address print in ps macros Date: Thu, 16 Apr 2009 17:48:13 +0400 (MSD) > >Fix: > --- tools/debugscripts/gdbinit.kernel.orig 2009-04-16 14:09:42.000000000 +0400 > +++ tools/debugscripts/gdbinit.kernel 2009-04-16 15:33:52.000000000 +0400 > @@ -199,7 +199,7 @@ > set $nproc = nprocs > set $aproc = allproc.lh_first > set $proc = allproc.lh_first > - printf " pid proc 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,7 +208,7 @@ > if ($proc.p_state) > set $thread = $proc->p_threads.tqh_first > while ($thread) > - printf "%5d %08x %4d %5d %5d %06x %d %-10s ", \ > + printf "%5d %18p %4d %5d %5d %06x %d %-10s ", \ > $proc.p_pid, $aproc, \ > $proc.p_ucred->cr_ruid, $pptr->p_pid, \ > $proc.p_pgrp->pg_id, $proc.p_flag, $proc.p_state, \ It makes kgdb output on i386 system looks ugly. Is there a way to make gdbinit platform aware? -- Maxim Konovalov _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"