Date: Wed, 30 Jul 2003 17:09:05 -0400 (EDT) From: John Baldwin <jhb@FreeBSD.org> To: arch@FreeBSD.org Subject: Make long ddb not suck Message-ID: <XFMail.20030730170905.jhb@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
I have a patch that adds a simple paging facility to ddb at the db_printf() level using a one-shot callback mechanism. It includes a simple paging callback that rearms itself based on the users input (space does another page, enter another line). I've used this facility to replace the hand-rolled paging in 'ps', 'show pci', and 'show ktr'. The patch is at http://www.FreeBSD.org/~jhb/patches/ddb.patch Comments? Also, I notice that we have a 'show threads' command commented out from the original Mach sources. I think we should change 'ps' back to just showing simple process info (and hopefully back to 80 cols) and only print thread info for 'show threads'. Maybe show threads should take a PID as the argument? Thus, one would have: db> ps 1 blah blah sleeping on "foo" 2 blah blah threaded db> show threads 2 0 blah blah sleeping on "bar" 1 blah blah running on cpuX etc. -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20030730170905.jhb>