This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: add-inferior / clone-inferior
- From: Tom Tromey <tromey at redhat dot com>
- To: David Taylor <dtaylor at emc dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 22 May 2013 08:47:47 -0600
- Subject: Re: add-inferior / clone-inferior
- References: <7249 dot 1369061005 at usendtaylorx2l> <87bo84l5ad dot fsf at fleche dot redhat dot com>
Tom> The whole target stack needs to be switched out depending on which
Tom> target is "active". I guess one idea would be to make it depend on the
Tom> current inferior. But then I would worry whether the correct inferior
Tom> is always selected when gdb is doing various operations.
Thinking about it some more, it may be simpler to associate the target
stack with a program space, not an inferior. This will have the same
effect, but I think gdb is generally more careful about selecting a
program space before doing an operation. E.g., linespec already does
this properly, breakpoints already do this properly, etc.
Tom> I wonder if there are other UI issues to consider.
One that comes to mind is what target is associated with an inferior
created with add-inferior? How could you change this inferior's target
to connect it to some existing target?
Also, some way to see the active targets would be needed. "info target"
already seems to be taken.
Tom