public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Should detach-on-fork be per-inferiour
@ 2012-07-09 20:01 Vladimir Prus
  0 siblings, 0 replies; only message in thread
From: Vladimir Prus @ 2012-07-09 20:01 UTC (permalink / raw)
  To: gdb

At present, it seems like 'detach-on-fork' variable is global for GDB instance. Should it be possible to have this variable,
or some other one, working per-inferior. So that, after I attach to a couple of system processes, I can automatically attach
to children spawned by one process but not another?

Here's the output that illustates what I'm talking about:

	(gdb) inferior 1
	[Switching to inferior 1 [<null>] (<noexec>)]
	(gdb) set detach-on-work off
	No symbol table is loaded.  Use the "file" command.
	(gdb) inferior 2
	[Switching to inferior 2 [<null>] (<noexec>)]
	(gdb) set detach-on-fork on
	(gdb) inferior 1
	[Switching to inferior 1 [<null>] (<noexec>)]
	(gdb) show detach-on-fork
	Whether gdb will detach the child of a fork is on.

Thanks,

-- 
Vladimir Prus
CodeSourcery / Mentor Graphics
http://www.mentor.com/embedded-software/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-09 20:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-09 20:01 Should detach-on-fork be per-inferiour Vladimir Prus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).