From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30649 invoked by alias); 23 Apr 2014 18:17:18 -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 30628 invoked by uid 89); 23 Apr 2014 18:17:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: ausxippc101.us.dell.com Received: from ausxippc101.us.dell.com (HELO ausxippc101.us.dell.com) (143.166.85.207) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 23 Apr 2014 18:17:17 +0000 X-LoopCount0: from 10.170.28.39 From: To: CC: , , Subject: Re: specifying gdb's exit code Date: Wed, 23 Apr 2014 18:17:00 -0000 Message-ID: References: <87ppk89dir.fsf@fleche.redhat.com> <5357F862.306@gmail.com> <87lhuw9br6.fsf@fleche.redhat.com> In-Reply-To: <87lhuw9br6.fsf@fleche.redhat.com> Content-Type: text/plain; charset="Windows-1252" Content-ID: <5F4EFE544343B944BE51E7D018D77A8E@dell.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00459.txt.bz2 On Apr 23, 2014, at 1:49 PM, Tom Tromey wrote: > Pedro> Would it be good if the online help and the manual agreed a bit > Pedro> more? The manual says "quit [expression]": >=20 > Yeah, I forgot it can be an expression. >=20 > What do you think of this? >=20 > Tom >=20 > diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c > index bfcd975..0eff952 100644 > --- a/gdb/cli/cli-cmds.c > +++ b/gdb/cli/cli-cmds.c > @@ -1685,7 +1685,11 @@ strict =3D=3D evaluate script according to filenam= e extension, error if not supporte > show_script_ext_mode, > &setlist, &showlist); >=20 > - add_com ("quit", class_support, quit_command, _("Exit gdb.")); > + add_com ("quit", class_support, quit_command, _("\ > +Exit gdb.\n\ > +Usage: quit [EXPR]\n\ > +The optional expression EXPR, if present, is evaluated and the result\n\ > +used as gdb's exit code. The default is zero.")); > c =3D add_com ("help", class_support, help_command, > _("Print list of commands.")); > set_cmd_completer (c, command_completer); Is the default actually zero? The help that Pedro quoted says that the def= ault is successful exit. On Unix, that=92s zero, but on VMS, it=92s one. paul