From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32339 invoked by alias); 3 Dec 2013 04:08:22 -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 32324 invoked by uid 89); 3 Dec 2013 04:08:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: rock.gnat.com Received: from Unknown (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 03 Dec 2013 04:07:21 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 6638811684E for ; Mon, 2 Dec 2013 23:07:51 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id w7EMixNSES+b for ; Mon, 2 Dec 2013 23:07:51 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id F045311684B for ; Mon, 2 Dec 2013 23:07:50 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 42080E0833; Tue, 3 Dec 2013 08:07:10 +0400 (RET) Date: Tue, 03 Dec 2013 04:08:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: pushed: [RFA 2/2] Add "undefined-command" error code at end of ^error result... Message-ID: <20131203040710.GC3114@adacore.com> References: <528631F2.40408@redhat.com> <1384794719-20594-1-git-send-email-brobecker@adacore.com> <1384794719-20594-3-git-send-email-brobecker@adacore.com> <528B47DA.2070300@redhat.com> <20131120025923.GK3481@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131120025923.GK3481@adacore.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-12/txt/msg00058.txt.bz2 > > > gdb/ChangeLog: > > > > > > (from Pedro Alves ) > > > (from Joel Brobecker ) > > > * exceptions.h (enum_errors) : New enum. > > > * mi/mi-parse.c (mi_parse): Thow UNKNOWN_COMMAND_ERROR instead > > > > "Throw" > > > > > of a regular error when the GDB/MI command does not exist. > > > * mi/mi-main.c (mi_cmd_list_features): Add > > > "undefined-command-error-code". > > > (mi_print_exception): Print an "undefined-command" > > > error code if EXCEPTION.ERROR in UNKNOWN_COMMAND_ERROR. > > > > s/in/is ? > > > > > * NEWS: Add entry documenting the new "code" variable in > > > "^error" result records. > > > > > > gdb/doc/ChangeLog: > > > > > > * gdb.texinfo (GDB/MI Result Records): Fix the syntax of the > > > "^error" result record concerning the error message. Document > > > the error code that may also be part of that result record. > > > (GDB/MI Miscellaneous Commands): Document the > > > "undefined-command-error-code" element in the output of > > > the "-list-features" GDB/MI command. > > > > > > gdb/testsuite/ChangeLog: > > > > > > * gdb.mi/mi-undefined-cmd.exp: New testcase. > > > > > > Tested on x86_64-linux. OK to commit? Now pushed. -- Joel