This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Debugging gdb under gdb
- From: Michael Snyder <msnyder at vmware dot com>
- To: Michael Eager <eager at eagercon dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Wed, 08 Jul 2009 16:58:09 -0700
- Subject: Re: Debugging gdb under gdb
- References: <4A55313B.8000006@eagercon.com>
Michael Eager wrote:
Hi --
When I try to run a test gdb under gdb, the host gdb hangs.
The hang occurs when the test gdb is executing pex_unix_exec_child().
As soon as the test gdb executes fork(), the host gdb hangs.
I've tried all of the permutations of follow-fork-mode
and detach-on-fork, with no luck. The host neither follows
the parent nor the child processes.
The host gdb is "GNU gdb Fedora (6.8-32.fc10)".
Suggestions?
Are you stepping or continuing when this occurs?
There is a point, somewhere around where gdb is forking the child,
where stepping always hangs for me. I don't remember exactly where.
I work around it by setting a breakpoint somewhere just after, and
continuing.
It's been a while since I've done this... but see if that helps.
Michael