Re: MI error msgs and localization

Daniel Jacobowitz
2006-02-15T13:37:36Z

On Wed, Feb 15, 2006 at 05:47:30PM +1300, Nick Roberts wrote:
> > Please don't. If you need to pass two arguments to error, make a
> > two-argument version :-)
> >
> > Passing arguments by globals is bad news.
>
> Well that's what is already done in mi-main.c, although admittedly the other
> mi files use error. More importantly, how do you propagate two messages
> back up the stack when gdb_exception only allows one?
>
> (top-gdb) ptype e
> type = struct gdb_exception {
> enum return_reason reason;
> enum errors error;
> const char *message;
> }

By adding to that struct?

--
Daniel Jacobowitz
CodeSourcery