From owner-freebsd-questions Fri Sep 26 21:34:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA23492 for questions-outgoing; Fri, 26 Sep 1997 21:34:16 -0700 (PDT) Received: from FreeBSD.csie.NCTU.edu.tw (daemon@freebsd.csie.nctu.edu.tw [140.113.235.250]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA23483 for ; Fri, 26 Sep 1997 21:34:08 -0700 (PDT) Received: (from daemon@localhost) by FreeBSD.csie.NCTU.edu.tw (8.8.7/8.8.5) id MAA25038; Sat, 27 Sep 1997 12:34:15 +0800 (CST) To: questions@freebsd.org Path: not-for-mail From: grog@lemis.com (Greg Lehey) Newsgroups: mailing.freebsd.questions Subject: Re: disassembler - is there any for FreeBSD Date: 27 Sep 1997 12:34:15 +0800 Organization: NCTU CSIE FreeBSD Server Lines: 30 Message-ID: <60i2c7$oea$1@FreeBSD.csie.NCTU.edu.tw> 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