1 Apr 2008 02:18
Re: cleanup mi error message handling
Pedro Alves <pedro <at> codesourcery.com>
2008-04-01 00:18:21 GMT
2008-04-01 00:18:21 GMT
A Monday 31 March 2008 01:45:18, Nick Roberts wrote: > > The only thing from you I can find is: > > > > At other times duplicated error messages are desirable, e.g., > > > > -exec-continue > > ^running > > (gdb) > > &"The program is not being run.\n" > > ^error,msg="The program is not being run." > > > > because the first goes to the console for the user to see, the second > > to the frontend to be handled as appropriate. > > > > You still did not say why showing the error message is console is > > desirable. If -exec-continue itself is now show in the console, the > > error message makes no sense. If -exec-continue is shown, then the error > > message is not necessary. Where the flaw in this logic. > > I can't understand these sentences. The command -exec-continue won't > appear in the console but "The program is not being run." will. These > `errors' and other similar ones like "No stack." are reported through error > () and are normal Gdb output for the user to see. Currently the console > can display such messages by reading LOG-STREAM-OUTPUT. > > Other errors like: > > (gdb) > -interpreter-exec > ^error,msg="mi_cmd_interpreter_exec: Usage: -interpreter-exec interp(Continue reading)
Seriously,
> the status bar doesn't feel right for this. This is not status.
Please don't take the status bar example too literally, it was just the first
place I thought of, and is not the focus of my message.
To get a meaningful report probably requires full logging of all the
transactions anyway, which is what I do for Emacs.
In any case I've already surrendered on this issue.
Please redirect any frontend errors using Gdb in Emacs reported on this list to
emacs-devel
Thanks.
RSS Feed