This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 2/2] Add "undefined-command" error code at end of ^error result...
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 19 Nov 2013 18:11:08 +0200
- Subject: Re: [RFA 2/2] Add "undefined-command" error code at end of ^error result...
- Authentication-results: sourceware.org; auth=none
- References: <528631F2 dot 40408 at redhat dot com> <1384794719-20594-1-git-send-email-brobecker at adacore dot com> <1384794719-20594-3-git-send-email-brobecker at adacore dot com> <83wqk5fwk4 dot fsf at gnu dot org> <20131119043526 dot GG3481 at adacore dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Tue, 19 Nov 2013 08:35:26 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb-patches@sourceware.org
>
> > > + ** The "^error" result record returned when trying to execute an undefined
> > > + GDB/MI command now provides a variable named "code" whose content is the
> > > + "undefined-command" error code.
> >
> > OK, but I would mention the fact that this can be inquired about, as
> > you described in your message.
>
> OK. New version attached.
Thanks.
> > > +@item "^error" "," "msg=" @var{c-string} [ "," "code=" @var{c-string} ]
> > > @findex ^error
> > > -The operation failed. The @code{@var{c-string}} contains the corresponding
> > > +The operation failed. The @var{msg} variable contains the corresponding
> > > error message.
> > >
> > > +If present, the @var{code} variable provides an error code on which
> >
> > The markup is wrong here: "code" is not a variable, it is a literal
> > symbol. You probably meant "c-string" instead.
>
> I've updated both "code" and "msg" (just above). Let me know if it reads
> better for you. ("code" is the name of a variable in GDB/MI lexicon).
It's OK now.