Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: PAUL GILLIAM <pgilliam@us.ibm.com>
Cc: gdb@sources.redhat.com
Subject: Re: follow-fork and detach-on-fork should have one command
Date: Mon, 10 Apr 2006 21:17:00 -0000	[thread overview]
Message-ID: <20060410181048.GA29568@nevyn.them.org> (raw)
In-Reply-To: <1144688788.10503.8.camel@dufur.beaverton.ibm.com>

On Mon, Apr 10, 2006 at 10:06:28AM -0700, PAUL GILLIAM wrote:
> Currently follow-fork is yes or no and detach-on-fork is yes or no.
> 
> It seems to me that it would be clearer if there was only one, with
> three states "parent", "child", "both".
> 
> Feel free to flame me if this has already been talked to death.

(gdb) set follow-fork-mode yes
Undefined item: "yes".
(gdb) set follow-fork-mode no
Undefined item: "no".
(gdb) help set follow-fork
Set debugger response to a program call of fork or vfork.
A fork or vfork creates a new process.  follow-fork-mode can be:
  parent  - the original process is debugged after a fork
  child   - the new process is debugged after a fork
The unfollowed process will continue to run.
By default, the debugger will follow the parent process.

Once upon a time, there was a "both" item in this menu.  It was
supposed to spawn two GDBs, one attached to each.  I think
set detach-on-fork off is a reasonable behavior for "set follow-fork
both".  Michael, how about you?

-- 
Daniel Jacobowitz
CodeSourcery


      reply	other threads:[~2006-04-10 18:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-10 18:15 PAUL GILLIAM
2006-04-10 21:17 ` Daniel Jacobowitz [this message]

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=20060410181048.GA29568@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=pgilliam@us.ibm.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