Date: Thu, 16 Apr 2009 13:50:07 GMT From: Maxim Konovalov <maxim@macomnet.ru> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/133775: [patch] gdb debugscripts: fix proc address print in ps macros Message-ID: <200904161350.n3GDo7tZ044814@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904161350.n3GDo7tZ044814>