Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: How do you use GDB to debug GDB
@ 2001-03-21 15:59 Michael Elizabeth Chastain
  2001-03-21 15:59 ` Stephen Smith
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Michael Elizabeth Chastain @ 2001-03-21 15:59 UTC (permalink / raw)
  To: gdb, ischis2

Hello Stephen,

This is how I do it:

  % gdb powerpc-motorola-elf-gdb
  (gdb) set prompt [top] 
  [top] set args --command=C:/rti/bin/rtidbug.ini C:/examples/dll/main.exe
  [top] break help_command
  [top] run

The first command helps me keep track of which gdb I'm in.  There is
a space at the end of the command: "set prompt [top] ".

The second command tells the superior gdb what the arguments are for
the inferior gdb.  This is the heart of what you want.  Note that you
can re-run the inferior gdb and the arguments will repeat.

The third line sets a convenient breakpoint in the superior gdb so that
you can bounce back up to it.  I usually do "help foo" instead of "help"
for getting to the superior gdb, to reduce the screen output.

The fourth line starts the inferior gdb with the arguments given on the
second line.

I've done this on both Unix/Linux and Cygwin gdb's.

Cheers,

Michael Elizabeth Chastain
<chastain@redhat.com>
"love without fear"


^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: Merging manuals (was Re: How do you use GDB to debug GDB)
@ 2001-03-21 15:59 Michael Elizabeth Chastain
  2001-03-21 15:59 ` Andrew Cagney
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Michael Elizabeth Chastain @ 2001-03-21 15:59 UTC (permalink / raw)
  To: ac131313, shebs; +Cc: gdb, ischis2

Another argument for separation of gdb.texinfo and gdbint.texinfo:

gdb.texinfo is in some sense a public interface which is meant to be
stable.  But information in gdbint.texinfo is not a public interface
and can change at any moment.

For example, someone could re-implement the symbol table with tries
instead of hash tables (I would really like this!).  That would affect
gdbint.texinfo, but it would not affect gdb.texinfo.

Maybe "public"/"private" are not the right words but there is a
definite difference here.

Michael


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2001-03-21 15:59 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-21 15:59 How do you use GDB to debug GDB Michael Elizabeth Chastain
2001-03-21 15:59 ` Stephen Smith
2001-03-21 15:59 ` Eli Zaretskii
2001-03-21 15:59   ` Kevin Buettner
2001-03-21 15:59   ` Andrew Cagney
2001-03-21 15:59     ` Merging manuals (was Re: How do you use GDB to debug GDB) Stan Shebs
2001-03-21 15:59       ` Eli Zaretskii
2001-03-21 15:59       ` J.T. Conklin
2001-03-21 15:59         ` Eli Zaretskii
2001-03-21 15:59         ` Michael Meissner
2001-03-21 15:59     ` How do you use GDB to debug GDB Eli Zaretskii
2001-03-21 15:59 ` Stephen Smith
2001-03-21 15:59 Merging manuals (was Re: How do you use GDB to debug GDB) Michael Elizabeth Chastain
2001-03-21 15:59 ` Andrew Cagney
2001-03-21 15:59 ` Kevin Buettner
2001-03-21 15:59   ` Fernando Nasser
2001-03-21 15:59 ` Eli Zaretskii
2001-03-21 15:59   ` J.T. Conklin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox