This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC/MI] Renumber enum mi_cmd_result
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 20 May 2002 13:34:09 -0400
- Subject: Re: [RFC/MI] Renumber enum mi_cmd_result
- References: <Pine.GSO.4.33.0205201000310.20482-100000@makita.cygnus.com>
>
> Ugh. This turned out to be more elusive than I thought. After trying this
> and that to untangle captured_mi_execute_command and catch_errors
> (mi_execute_command used a return code that was a hybrid of both of
> these), I've settled on the following patch, which at least attempts to
> keep the mi return result of the command separate from what
> mi_execute_command should do.
>
Looks like a good move. Yes.
Andrew
PS: catch_exceptions() is something of a compromise so I'm not suprized.
One early prototype had the wrapped function returning void so code
was forced to pass the result back via the argument.