This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Multiprogram teaser
- From: Tom Tromey <tromey at redhat dot com>
- To: Stan Shebs <stan at codesourcery dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 30 Jul 2008 11:18:51 -0600
- Subject: Re: Multiprogram teaser
- References: <488E7670.40609@codesourcery.com>
- Reply-to: tromey at redhat dot com
>>>>> "Stan" == Stan Shebs <stan@codesourcery.com> writes:
Stan> Here's a little teaser showing the results of me flogging GDB's
Stan> source code.
Delightful.
Stan> Attaching objfile /home/stan/hello to exec /home/stan/hello
Stan> Attaching objfile /home/stan/goodbye to exec /home/stan/goodbye
[...]
Stan> (gdb) exec /home/stan/hello
I'm wondering what happens if you want to start two instances of hello
at once.
I suppose one solution to the UI problems would be to treat each
separate "exec" (I dunno what you want to call this -- a concept
encompassing a process, a core file, or an unstarted executable) as an
object that can be manipulated in its own right.
So, you could have "info <foo>" to list them, switch between them,
have "set args" set the arguments for the current one, "run" start one
or more of them, etc.
Tom