* Debug the Debugger
@ 2007-01-10 19:47 Markus Deuling
2007-01-10 19:52 ` Paul Koning
2007-01-10 19:54 ` Daniel Jacobowitz
0 siblings, 2 replies; 5+ messages in thread
From: Markus Deuling @ 2007-01-10 19:47 UTC (permalink / raw)
To: GDB Discuss
Hi,
I try debugging gdb with gdb. GDB Internals Manual (19.2, p.96) says "The info command, when executed without a subcommand in a GDB being debugged by gdb, will pop you backup to the top leve gdb."
But it doesn't :-(
Has the mechanism changed? How do I switch back to my toplevel gdb to set some breakpoints etc. ?
Regards,
Markus
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Debug the Debugger
2007-01-10 19:47 Debug the Debugger Markus Deuling
@ 2007-01-10 19:52 ` Paul Koning
2007-01-10 19:54 ` Daniel Jacobowitz
1 sibling, 0 replies; 5+ messages in thread
From: Paul Koning @ 2007-01-10 19:52 UTC (permalink / raw)
To: deuling; +Cc: gdb
>>>>> "Markus" == Markus Deuling <deuling@de.ibm.com> writes:
Markus> Hi, I try debugging gdb with gdb. GDB Internals Manual (19.2,
Markus> p.96) says "The info command, when executed without a
Markus> subcommand in a GDB being debugged by gdb, will pop you
Markus> backup to the top leve gdb."
Markus> But it doesn't :-(
Markus> Has the mechanism changed? How do I switch back to my
Markus> toplevel gdb to set some breakpoints etc. ?
I always just hit control/C.
paul
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Debug the Debugger
2007-01-10 19:47 Debug the Debugger Markus Deuling
2007-01-10 19:52 ` Paul Koning
@ 2007-01-10 19:54 ` Daniel Jacobowitz
2007-01-10 19:58 ` Markus Deuling
1 sibling, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2007-01-10 19:54 UTC (permalink / raw)
To: Markus Deuling; +Cc: GDB Discuss
On Wed, Jan 10, 2007 at 08:47:24PM +0100, Markus Deuling wrote:
> Hi,
>
> I try debugging gdb with gdb. GDB Internals Manual (19.2, p.96) says "The
> info command, when executed without a subcommand in a GDB being debugged by
> gdb, will pop you backup to the top leve gdb."
>
> But it doesn't :-(
This relies on a breakpoint on info_command. The gdbinit file in the
gdb object directory sets that up. If you run GDB from anywhere else,
you won't get it.
Like Paul, I usually use C-c.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Debug the Debugger
2007-01-10 19:54 ` Daniel Jacobowitz
@ 2007-01-10 19:58 ` Markus Deuling
2007-02-21 21:57 ` Michael Snyder
0 siblings, 1 reply; 5+ messages in thread
From: Markus Deuling @ 2007-01-10 19:58 UTC (permalink / raw)
To: GDB Discuss
Daniel Jacobowitz schrieb:
> On Wed, Jan 10, 2007 at 08:47:24PM +0100, Markus Deuling wrote:
>> Hi,
>>
>> I try debugging gdb with gdb. GDB Internals Manual (19.2, p.96) says "The
>> info command, when executed without a subcommand in a GDB being debugged by
>> gdb, will pop you backup to the top leve gdb."
>>
>> But it doesn't :-(
>
> This relies on a breakpoint on info_command. The gdbinit file in the
> gdb object directory sets that up. If you run GDB from anywhere else,
> you won't get it.
>
> Like Paul, I usually use C-c.
>
Aha ?!? Ok, interesting idea. Well, I think I'll take the C-c :-)
Thank you both.
Regards,
Markus
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Debug the Debugger
2007-01-10 19:58 ` Markus Deuling
@ 2007-02-21 21:57 ` Michael Snyder
0 siblings, 0 replies; 5+ messages in thread
From: Michael Snyder @ 2007-02-21 21:57 UTC (permalink / raw)
To: Markus Deuling; +Cc: GDB Discuss
On Wed, 2007-01-10 at 20:58 +0100, Markus Deuling wrote:
> Daniel Jacobowitz schrieb:
> > On Wed, Jan 10, 2007 at 08:47:24PM +0100, Markus Deuling wrote:
> >> Hi,
> >>
> >> I try debugging gdb with gdb. GDB Internals Manual (19.2, p.96) says "The
> >> info command, when executed without a subcommand in a GDB being debugged by
> >> gdb, will pop you backup to the top leve gdb."
> >>
> >> But it doesn't :-(
> >
> > This relies on a breakpoint on info_command. The gdbinit file in the
> > gdb object directory sets that up. If you run GDB from anywhere else,
> > you won't get it.
> >
> > Like Paul, I usually use C-c.
> >
>
> Aha ?!? Ok, interesting idea. Well, I think I'll take the C-c :-)
And in case that doesn't work, I habitually set a breakpoint on
"help_command". Then you just say "help foo", and you're back in
the top-level debugger.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-02-21 19:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-10 19:47 Debug the Debugger Markus Deuling
2007-01-10 19:52 ` Paul Koning
2007-01-10 19:54 ` Daniel Jacobowitz
2007-01-10 19:58 ` Markus Deuling
2007-02-21 21:57 ` Michael Snyder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox