From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16978 invoked by alias); 23 Apr 2014 17:29:15 -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 16968 invoked by uid 89); 23 Apr 2014 17:29:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f173.google.com Received: from mail-wi0-f173.google.com (HELO mail-wi0-f173.google.com) (209.85.212.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 23 Apr 2014 17:29:13 +0000 Received: by mail-wi0-f173.google.com with SMTP id z2so5298538wiv.6 for ; Wed, 23 Apr 2014 10:29:10 -0700 (PDT) X-Received: by 10.180.8.40 with SMTP id o8mr2754502wia.25.1398274150359; Wed, 23 Apr 2014 10:29:10 -0700 (PDT) Received: from [192.168.0.102] (bl16-15-58.dsl.telepac.pt. [188.81.15.58]) by mx.google.com with ESMTPSA id y20sm30171014wiv.14.2014.04.23.10.29.08 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 23 Apr 2014 10:29:09 -0700 (PDT) Message-ID: <5357F862.306@gmail.com> Date: Wed, 23 Apr 2014 17:29:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Tom Tromey CC: Daniel Gutson , gdb-patches Subject: Re: specifying gdb's exit code References: <87ppk89dir.fsf@fleche.redhat.com> In-Reply-To: <87ppk89dir.fsf@fleche.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00450.txt.bz2 On 04/23/2014 06:11 PM, Tom Tromey wrote: > - add_com ("quit", class_support, quit_command, _("Exit gdb.")); > + add_com ("quit", class_support, quit_command, _("\ > +Exit gdb.\n\ > +Usage: quit [CODE]\n\ > +The optional argument CODE, if present, is used as gdb's exit status.\n\ > +The default is zero.")); > c = add_com ("help", class_support, help_command, > _("Print list of commands.")); > set_cmd_completer (c, command_completer); Would it be good if the online help and the manual agreed a bit more? The manual says "quit [expression]": @node Quitting GDB @section Quitting @value{GDBN} @cindex exiting @value{GDBN} @cindex leaving @value{GDBN} @table @code @kindex quit @r{[}@var{expression}@r{]} @kindex q @r{(@code{quit})} @item quit @r{[}@var{expression}@r{]} @itemx q To exit @value{GDBN}, use the @code{quit} command (abbreviated @code{q}), or type an end-of-file character (usually @kbd{Ctrl-d}). If you do not supply @var{expression}, @value{GDBN} will terminate normally; otherwise it will terminate using the result of @var{expression} as the error code. @end table -- Pedro Alves