Skip site navigation (1)Skip section navigation (2)
Date:      27 Sep 1997 12:00:29 +0800
From:      grog@lemis.com (Greg Lehey)
To:        questions@freebsd.org
Subject:   Re: disassembler - is there any for FreeBSD
Message-ID:  <60i0ct$nhv$1@FreeBSD.csie.NCTU.edu.tw>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?60i0ct$nhv$1>