Re: Debugging GDB and breaking?

Andreas Schwab
2002-12-18T15:59:10Z

Michael Elizabeth Chastain <mec@shout.net> writes:

|> Some general hints for debugging gdb:
|>
|> I start with "gdb /my/gdb/to/debug/bin/gdb". I like to use a stable gdb
|> for the top gdb, such as the vendor-supplied gdb or gdb 5.3. Also this
|> helps separate, in my mind, the top gdb from the inferior gdb.
|>
|> Then I immediately:
|>
|> (gdb) set prompt [top]
|> [top] break help_command
|> [top] set args /program/under/test
|>
|> The first line distinguishes the top gdb from the inferior gdb.

If you start gdb from the build directory you get these thing
automatically through the .gdbinit file in this directory.

Andreas.

--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 NÃ¼rnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."