Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* follow-fork and detach-on-fork should have one command
@ 2006-04-10 18:15 PAUL GILLIAM
  2006-04-10 21:17 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: PAUL GILLIAM @ 2006-04-10 18:15 UTC (permalink / raw)
  To: gdb

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.

-=# Paul #=-


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: follow-fork and detach-on-fork should have one command
  2006-04-10 18:15 follow-fork and detach-on-fork should have one command PAUL GILLIAM
@ 2006-04-10 21:17 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-04-10 21:17 UTC (permalink / raw)
  To: PAUL GILLIAM; +Cc: gdb

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-10 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-10 18:15 follow-fork and detach-on-fork should have one command PAUL GILLIAM
2006-04-10 21:17 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox