From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5339 invoked by alias); 19 Nov 2013 16:11:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 5322 invoked by uid 89); 19 Nov 2013 16:11:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,SPF_SOFTFAIL,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mtaout21.012.net.il Received: from Unknown (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 19 Nov 2013 16:11:21 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MWI00J00QACAQ00@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Tue, 19 Nov 2013 18:11:12 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MWI00J26QAN9U30@a-mtaout21.012.net.il>; Tue, 19 Nov 2013 18:11:11 +0200 (IST) Date: Tue, 19 Nov 2013 16:16:00 -0000 From: Eli Zaretskii Subject: Re: [RFA 2/2] Add "undefined-command" error code at end of ^error result... In-reply-to: <20131119043526.GG3481@adacore.com> To: Joel Brobecker Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83siusfk2r.fsf@gnu.org> References: <528631F2.40408@redhat.com> <1384794719-20594-1-git-send-email-brobecker@adacore.com> <1384794719-20594-3-git-send-email-brobecker@adacore.com> <83wqk5fwk4.fsf@gnu.org> <20131119043526.GG3481@adacore.com> X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00549.txt.bz2 > Date: Tue, 19 Nov 2013 08:35:26 +0400 > From: Joel Brobecker > 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.