From owner-freebsd-hackers Mon Mar 11 15:02:11 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA27009 for hackers-outgoing; Mon, 11 Mar 1996 15:02:11 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA26982 for ; Mon, 11 Mar 1996 15:02:06 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id AAA14660 for ; Tue, 12 Mar 1996 00:02:02 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id AAA27761 for freebsd-hackers@freebsd.org; Tue, 12 Mar 1996 00:02:02 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.4/8.6.9) id XAA00744 for freebsd-hackers@freebsd.org; Mon, 11 Mar 1996 23:55:28 +0100 (MET) From: J Wunsch Message-Id: <199603112255.XAA00744@uriah.heep.sax.de> Subject: Re: using ddb to debug a double-panic? To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Mon, 11 Mar 1996 23:55:27 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199603111216.NAA16525@nixpbe.pdb.sni.de> from "Greg Lehey" at Mar 11, 96 01:12:31 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Greg Lehey wrote: > > . repeat the last `print' command by pressing enter only > > Lowbug does this already. There are some complications: do you want > the same area of memory (usually not, in the case of print, but maybe > in the case of reading io ports. The location counter is already counted up (if you issue the next print command, it will continue where it stopped before), but the implicit print command should better use the range from the last one (as opposed to falling back to a range of 1). This way, one could nicely browse through a disassembled function or a larger block of data. I don't think any command should be auto-repeated. The gdb'ism of telling me ``Note: breakpoint is also set at this location'' when hitting after just setting a breakpoint is rather annoying, and in case of DDB, many of these auto-repeated commands might be rather dangerous. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)