Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Refuse following the vfork parent if not letting the child run.
Date: Mon, 08 Jun 2009 14:31:00 -0000	[thread overview]
Message-ID: <20090608143111.GA14456@caradoc.them.org> (raw)
In-Reply-To: <200906081431.38913.pedro@codesourcery.com>

On Mon, Jun 08, 2009 at 02:31:38PM +0100, Pedro Alves wrote:
> A patched GDB shows this:
> 
>  (gdb) set detach-on-fork off
>  (gdb) start
>  Temporary breakpoint 1 at 0x4005c0: file ../../../src/gdb/testsuite/gdb.base/foll-vfork.c, line 12.
>  Starting program: /home/pedro/gdb/sspaces/build/gdb/testsuite/gdb.base/foll-vfork
> 
>  Temporary breakpoint 1, main () at ../../../src/gdb/testsuite/gdb.base/foll-vfork.c:12
>  12        pid = vfork ();
>  (gdb) n
>  warning: Can not debug the parent of a vfork in the foreground if not letting
>  the child run until it execs or exits, as it would deadlock the terminal.
>  0x00007ffff789aee4 in vfork () from /lib/libc.so.6
>  (gdb)      

None of your explanation, the patch, or the example output tells me
what GDB is doing instead :-)  IOW, I think a "warning" about the
situation here is strange; something has happened, and we don't say
what.

Is this actually a fork-following error, and we've stopped execution?

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2009-06-08 14:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-08 13:30 Pedro Alves
2009-06-08 14:31 ` Daniel Jacobowitz [this message]
2009-06-08 14:39   ` Pedro Alves
2009-06-08 15:03     ` Pedro Alves
2009-06-08 15:43       ` Daniel Jacobowitz
2009-06-08 17:44         ` Pedro Alves

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=20090608143111.GA14456@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.com \
    /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