Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Why aren't inferiors deleted on exit or detach
@ 2014-05-06 20:16 Breazeal, Don
  2014-05-07  5:46 ` Yao Qi
  0 siblings, 1 reply; 2+ messages in thread
From: Breazeal, Don @ 2014-05-06 20:16 UTC (permalink / raw)
  To: gdb

Hi

I've been struggling with the issue of when to delete inferiors, as I'm 
working on remote follow-fork.  It looks like inferiors are kept around 
after a process exits or is detached or killed so that the user can 
switch to the inferior and run it again.  The argument vector for the 
inferior is kept intact on exit/detach/etc.

Is my understanding here correct?

With "follow-fork parent" and "detach-on-fork on", GDB does *not* keep 
an inferior around for the detached child.  My guess is that this is 
because the child inferior would just be a duplicate of the parent inferior.

Correct?

Thanks
--Don


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

end of thread, other threads:[~2014-05-07  5:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-06 20:16 Why aren't inferiors deleted on exit or detach Breazeal, Don
2014-05-07  5:46 ` Yao Qi

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