Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 1996 15:58:15 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        erich@lodgenet.com, lehey.pad@sni.de
Cc:        hackers@FreeBSD.org, joerg_wunsch@uriah.heep.sax.de, terry@lambert.org
Subject:   Re: using ddb to debug a double-panic?
Message-ID:  <199603120458.PAA30918@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> > Does anybody else have ideas about improving ddb?
>> > 
>> 
>> yea, SCO's kernel debugger has a few more advanced features that
>> I kind of like, that probably wouldn't be too hard to implement:
>> a readline type history, 

>This is one of the things I had planned.

I planned it too, but may not get around to doing it soon enough.
The command line editor should be shared with userconfig (turn off
the history where it isn't wanted, e.g., for the visual config).
The line editor in my debugger is 2K large including a 256-byte
history buffer.

>Does anybody object to
>emacs-style only, if the cursor functions work?

Of course everyone would object :-).  Mine uses wordstar style control
keys and cursor keys for editing and Turbo Debugger style function keys
for tracing etc.  It is difficult to support the cursor keys and more
difficult to support the function keys for all terminals.  Cursor keys
often send an escape, which makes my debugger continue with all breakpoints
disabled.

>> watchpoints (do these work in ddb?),

>I don't think ddb has watchpoints.  Lowbug has hardware breakpoints,

The version of ddb in FreeBSD has only the machine-independent parts of
the support for watchpoints.

>> I'd also like to be able to load in a new symbol table, such as when
>> an lkm is loaded.  

>It may not be automatic, but it should be possible via the mechanism I
>described above.

modload and modunload should merge and remove symbols.  It's too late
to load them when the system crashes.

>> . inb/outb builtins

>They're there in lowbug.

My debugger has these and other features:

- same binary runs on 8088-Pentium
- mostly OS independent (needs protected mode hooks)
- mostly reentrant.  Uses its own drivers for MDA-SVGA (text mode only :-(),
  keyboard and serial.
- ROMable

and misfeatures:
- no expressions
- no memory fault trap handlers...

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603120458.PAA30918>