From owner-freebsd-questions Fri Sep 26 16:14:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA05809 for questions-outgoing; Fri, 26 Sep 1997 16:14:46 -0700 (PDT) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA05803 for ; Fri, 26 Sep 1997 16:14:40 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id IAA13665; Sat, 27 Sep 1997 08:44:25 +0930 (CST) Message-ID: <19970927084425.35447@lemis.com> Date: Sat, 27 Sep 1997 08:44:25 +0930 From: Greg Lehey To: William Bulley Cc: FreeBSD Questions Subject: Re: disassembler - is there any for FreeBSD References: <19970926192046.62020@lemis.com> <199709261319.JAA07403@ohm.merit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199709261319.JAA07403@ohm.merit.edu>; from William Bulley on Fri, Sep 26, 1997 at 09:19:04AM -0400 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Fri, Sep 26, 1997 at 09:19:04AM -0400, William Bulley wrote: > According to Greg Lehey: >> >> gdb and ddb both include one. It would probably be easier to extract >> ddb's one, but last time I looked at it, I gave up due to lack of >> time. It's not completely trivial. > > I have a man page for ddb (2.2-970814-RELENG) but I can't find the > program itself... > > There is no Makefile in /usr/src/sys/ddb so I can't use that to > determine where the ddb debugger ends up. :-( ddb is part of the kernel--it's the kernel debugger. You install it by adding the following lines to the kernel config file: options DDB # # Don't drop into DDB for a panic. Intended for unattended operation # where you may want to drop to DDB from the console, but still want # the machine to recover from a panic # options DDB_UNATTENDED options BREAK_TO_DEBUGGER Then you build a new kernel. The usual way to invoke ddb is to hit CTRL-ALT-ESC. This will suspend the operating system until you return. Greg