Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* multiple live inferiors
@ 2016-08-11 14:57 taylor, david
  2016-08-11 15:22 ` Pedro Alves
  0 siblings, 1 reply; 4+ messages in thread
From: taylor, david @ 2016-08-11 14:57 UTC (permalink / raw)
  To: gdb

Currently GDB supports having multiple non-live inferiors.  But, if I try to
add a second live inferior it wants to kill the current live inferior.

That is, I can do:

    gdb some-file.elf
    set non-stop on
    set target-async on
    target extended-remote | program with some arguments
    add-inferior -exec new-file.elf
    info inferiors
    inferior 2
    target extended-remote | program with different arguments

at which point GDB will say:

    A program is being debugged already.  Kill it? (y or n)

I'd be okay with the question if the current inferior was live.  But, it is just an executable.

I assume that there's more to changing this than just modifying target_preopen.
What else is likely to break or need modification?

Thanks.


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

end of thread, other threads:[~2016-08-11 17:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-11 14:57 multiple live inferiors taylor, david
2016-08-11 15:22 ` Pedro Alves
2016-08-11 17:13   ` taylor, david
2016-08-11 17:35     ` Pedro Alves

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