This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [MI/RFC] Emit ^running via observer.
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 20 Jun 2008 14:48:52 +1200
- Subject: Re: [MI/RFC] Emit ^running via observer.
- References: <200806140108.24047.vladimir@codesourcery.com>
> This patch fixes an issue in MI code that was present since at least 1999.
> We output ^running before even trying to resume the target, not to mention
> making sure the target is resumed. So, if resuming fails, we'd get ^running,
> followed by ^error, and I don't really know if current frontends will like
> it at all.
>
> Now that we have observer for resume, and that observer is called after
> target is resumed, we can emit ^running from that observer. The immediate
> bonus is that ^running is now emitted for every command that resumes the
> inferior, even for CLI commands. Another (unexpected) bonus, is that since
^^^^^^^^^^^^^^^^^^^^^
> now ^running and *running is output in a single place, we can produce them
> in consistent order.
I would like to see this patch committed! I've not tested it but I should have
Emacs working with MI shortly and then I can regularly test this and other
changes.
--
Nick http://www.inet.net.nz/~nickrob