Who uses 'adb' debugger? (Supplementary to my own question.)

Michael Meissner meissner at osf.org
Fri Jan 12 03:45:50 AEST 1990


In article <50349 at bu.edu.bu.edu> clement at buengf.bu.edu (Clement Lee) writes:

| My friend in CS told me that gdb (GNU) and cdb are better than sdb or
| adb, and gdb is the best, but to run gdb, the C program has to be
| compiled by gcc.  But I still have no idea of what is better.

Gdb blows the socks off sdb and dbx.  You should be able to use the
standard C compiler on your system, since gdb will grok either the
.stab information (what dbx usually uses) or the COFF debug
information (what sdb usually uses) depending on what the system
supports.  Note, you should get the latest version of GDB (3.4) rather
than old musty, broken gdb that is currently on the emacs tape (2.x).
You can get GDB from the Free Software Foundation (it's on their
compiler tape), or via anonymous ftp from prep.ai.mit.edu, or
uunet.uu.net, or via anonymous uucp from ohio state.

A popular way of using GDB is to use it through GNU emacs (M-x gdb).
You get put into two window mode on breakpoints, one window being the
current gdb interaction layer, and the other being the source file,
with the line the breakpoint is on indicated.  I discovered that this
does have it's drawbacks if you are debugging large programs, since
emacs, gdb, and the program must be running simulataneously.
--
Michael Meissner	email: meissner at osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA

Catproof is an oxymoron, Childproof is nearly so



More information about the Comp.unix.questions mailing list