This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA (?) Annotate Level 3 patch
- From: Nick Roberts <nick at nick dot uklinux dot net>
- To: Andrew Cagney <cagney at gnu dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 2 Feb 2004 22:02:05 +0000
- Subject: Re: RFA (?) Annotate Level 3 patch
- References: <16176.3560.65649.7079@nick.uklinux.net><4016A245.6030001@gnu.org>
> Can you post a log with/with-out this patch to illustrate what's
> happening. You're right - emacs should see "stopped" first but there
> might be a better long-term way to do this.
>
> I suspect this will mean playing with the print-stop-reason code.
Moving annotate_stopped to the start of normal_stop seems to do the right
thing. It might be bad practice, however, to break existing functionality so a
better solution might be to create a new annotation there - aargh! - called
stopping, say, instead. However, remember that I will have reduced my initial
set of 25 annotations to 14. They would be:
pre-prompt prompt post-prompt
commands overload-choice query
prompt-for-continue source starting
exited signalled signal
stopped
and stopping
And, of course, from time to time, I'm trying to get GDB/MI to work directly
with Emacs.
BTW I have seen that Vim developers are starting to use level 2 annotations
for their own front end to GDB.
( http://thread.gmane.org/gmane.editors.vim.devel/5024 )
Nick