This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Debugging GDB and breaking?
- From: Grant Edwards <grante at visi dot com>
- To: gdb at sources dot redhat dot com
- Date: Wed, 18 Dec 2002 12:59:21 -0600
- Subject: Re: Debugging GDB and breaking?
- References: <200212181523.gBIFNUZ10382@duracef.shout.net>
On Wed, Dec 18, 2002 at 09:23:30AM -0600, Michael Elizabeth Chastain wrote:
> 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.
Running them in separate ttys prevents confusion for me:
gdb -tty=<whatever> /my/buggy/gdb
Or I use the equivalent menu item in DDD or Insight...
--
Grant Edwards
grante@visi.com