This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Debugging GDB and breaking?


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]