This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Debugging GDB and breaking?
- From: Andreas Schwab <schwab at suse dot de>
- To: Michael Elizabeth Chastain <mec at shout dot net>
- Cc: gdb at sources dot redhat dot com, i_am_triumph at ofir dot dk
- Date: Wed, 18 Dec 2002 16:58:54 +0100
- Subject: Re: Debugging GDB and breaking?
- References: <200212181523.gBIFNUZ10382@duracef.shout.net>
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."