Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* 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; 15+ 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] 15+ messages in thread
* Re: How do you use GDB to debug GDB
@ 2001-03-21 15:59 Eli Zaretskii
  2001-03-21 15:59 ` Andrew Cagney
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2001-03-21 15:59 UTC (permalink / raw)
  To: Michael Elizabeth Chastain; +Cc: gdb, ischis2

On Mon, 19 Mar 2001, Michael Elizabeth Chastain wrote:

>   % 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 think this is important enough to go into the manual.

If anyone has additional tricks pertginent to debugging GDB, please
post them, and I will merge them all together.

One thing puzzles me, though: why is the section "Debugging GDB with
itself" in gdbint.texinfo instead of gdb.texinfo?  Is there any reason
not to move (or copy) it to gdb.texinfo?  Can some of the elders
please shed some light on this?


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

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

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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     ` GCC is depreciating multi-line strings Stephen Smith
2001-03-21 15:59       ` Andrew Cagney
2001-03-21 15:59         ` Christopher Faylor
2001-03-21 15:59         ` Andrew Cagney
2001-03-21 15:59 ` Merging manuals (was Re: How do you use GDB to debug GDB) Eli Zaretskii
2001-03-21 15:59   ` J.T. Conklin
2001-03-21 15:59 How do you use GDB to debug GDB Eli Zaretskii
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     ` J.T. Conklin
2001-03-21 15:59       ` Michael Meissner
2001-03-21 15:59       ` Eli Zaretskii
2001-03-21 15:59     ` Eli Zaretskii

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