This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Async mode fixes.
On Saturday 08 March 2008 23:36:15 Nick Roberts wrote:
> I think the command "target async" is a bit misleading and it should really be
> called "target remote-async" (I'm not really suggesting changing it).
Well, ideally, it would be called 'target remote' ;-) Having two different modes,
where one mode has strictly more features than the other, is a way to have
one of the modes bit-rot.
> My changes aren't just for Linux, but an exec target. I mean native debugging
> (I think) with just one implementation - linux. It sounds like I'm inflating
> what I've done but other native targets can presumably be adapted to make use
> of the changes in inf-ptrace.c, exec.c etc.
>
> If all targets could run asynchronously, then it seems that that mode should
> be specified at startup:
>
> gdb --async myprog
>
> in which case
>
> (gdb) target remote host:2222
>
> would do what
>
> (gdb) target async host:2222
>
> currently does and
>
> (gdb) run
>
> would run the native applications asynchronously.
Likewise, I think it's better to always use async mode,
if the target supports it. We're not at the point when we can do
it -- even with my patch, 'target async' has a couple of extra
failures relatively to 'target remote', and I never tried getting
test results for linux native -- but I think having async mode
always on should be end goal.
- Volodya