From owner-freebsd-arch@FreeBSD.ORG Thu Jul 31 01:43:46 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B0E837B401; Thu, 31 Jul 2003 01:43:45 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E92143F85; Thu, 31 Jul 2003 01:43:44 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id SAA11237; Thu, 31 Jul 2003 18:43:41 +1000 Date: Thu, 31 Jul 2003 18:43:40 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: John Baldwin In-Reply-To: Message-ID: <20030731182956.T5869@gamplex.bde.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: arch@freebsd.org Subject: Re: Make long ddb not suck X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2003 08:43:47 -0000 > 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? I like it. It also needs to have some idea of line lengths, so that 20-line pages with too-long lines don't scroll off 25-line terminals. > 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? I would like almost anything to make it readable again. It now mostly fits in 80 columns on i386's but is still unreadable because columns don't line up. It will never fit in 80 colums on arches with 64-bit pointers. Bruce