Re: [PATCH] MI error messages

Daniel Jacobowitz
2005-06-23T03:48:20Z

On Wed, Jun 22, 2005 at 07:28:17PM +1200, Nick Roberts wrote:
> > We have a syntax for error messages... let's use it?
>
> Are you referring to the return value MI_CMD_ERROR? Interestingly this isn't
> used at all in mi-cmd-var.c or mi-cmd-stack.c but I think it is more
> appropriate for the errors generated there. It only goes back to
> captured_mi_execute_command and doesn't generate any output in the log stream
> (&"..."). I'm not too keen on procedures with lots of return points though.

I'm referring to the syntax, which is ^error. If returning
MI_CMD_ERROR works, then that way is fine.

I don't get your objection. error() is a return point anyway.

--
Daniel Jacobowitz
CodeSourcery, LLC