Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@vmware.com>
To: Michael Eager <eager@eagercon.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: Debugging gdb under gdb
Date: Thu, 09 Jul 2009 00:02:00 -0000	[thread overview]
Message-ID: <4A553291.8040904@vmware.com> (raw)
In-Reply-To: <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


  reply	other threads:[~2009-07-09  0:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-08 23:52 Michael Eager
2009-07-09  0:02 ` Michael Snyder [this message]
2009-07-09  0:21   ` Michael Eager
2009-07-09 15:29 ` Jan Kratochvil
2009-07-09 16:05   ` Michael Eager

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A553291.8040904@vmware.com \
    --to=msnyder@vmware.com \
    --cc=eager@eagercon.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox