From patchwork Thu Apr 17 21:51:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Gutson X-Patchwork-Id: 611 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx22.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id 59E77360072 for ; Thu, 17 Apr 2014 14:52:05 -0700 (PDT) Received: by homiemail-mx22.g.dreamhost.com (Postfix, from userid 14314964) id D07F849ECF34; Thu, 17 Apr 2014 14:52:04 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx22.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx22.g.dreamhost.com (Postfix) with ESMTPS id 7F6224A1F351 for ; Thu, 17 Apr 2014 14:52:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; q=dns; s=default; b= jyizFuq6AIxfI6rFsokUM/lnJJ+xgy0HYeRfChDIjq1GpliOpkSQX0wRHA3WQQCM FE7J5Doxe6GsKy2AKlKhXbqDFNr++gIXM78aL60+vrEq/B3yoKeen5cjlbWn/z7q gyKVi0sH5gEKegA2rlEbb4aDm/SMWghjZoT/bMb1qvs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; s=default; bh=lOz6E dYduAWDQzgsDJpz7IYVHTM=; b=WhXMjPp4Y+nfp7xjyffjjWKtaaW8Bl3KItTCG 5SW00Cfw1w9k1eumTm/Y/M2MO6LXB85j22MKptEcWYXt4+1JZSWD1xBZVJg45ASu u8UGUt/IVpy8kfT5bzFNWItFh1nLfLUlZxxonWergbEIaZibl3kKdmh/1CxQXeHR BdnyVI= Received: (qmail 21417 invoked by alias); 17 Apr 2014 21:52:02 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 21406 invoked by uid 89); 17 Apr 2014 21:52:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mail-wi0-f175.google.com Received: from mail-wi0-f175.google.com (HELO mail-wi0-f175.google.com) (209.85.212.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 17 Apr 2014 21:52:01 +0000 Received: by mail-wi0-f175.google.com with SMTP id cc10so75270wib.14 for ; Thu, 17 Apr 2014 14:51:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=BtwhcLmDdvQxu5Gr0QzcQ/7ugZLOhAaAnkstQJf+XKI=; b=mjPn0g571yGdQS2NFpC30mmOLjrMahWslLD57NWO8WsUl5cF0vvhaxkfdHPkJFZL4b MQ3M8oKjslJ/OnJalWqbOhDPgRsD99O0xFmnj16eK36HsxaEa0Q0g0J0N42PlZPVrvFo PM/KPjpRf97+9enlpvyz5doZGSQWwHK/MJGxNt7oqZAuuYp+7iwyUNdPIKwWnzhEk0QC dKC33nnK82tHddZjoaH3vBp58IxKWQaxuZWlaRdZuFbX3/btDMrVPA9L0aErB9JuPb/V VCeaqK/FmiGWLVrGfhWBYw8eGKDmAQm258nc66U3Wu8JBA5PIVlxtXMgDbBReMAOv/H3 0qjQ== X-Gm-Message-State: ALoCoQlCcu5HBVReUkeTeYooRD5yRnBwR49/RMrEF+uHOQINzctE+y18laJdJm62xVnOoZyAF0PT MIME-Version: 1.0 X-Received: by 10.194.110.100 with SMTP id hz4mr3790642wjb.50.1397771518120; Thu, 17 Apr 2014 14:51:58 -0700 (PDT) Received: by 10.194.51.4 with HTTP; Thu, 17 Apr 2014 14:51:57 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Apr 2014 18:51:57 -0300 Message-ID: Subject: Re: specifying gdb's exit code From: Daniel Gutson To: Doug Evans Cc: gdb , gdb-patches X-IsSubscribed: yes X-DH-Original-To: gdb@patchwork.siddhesh.in What about this? (I'm not a native English speaker) If OK, please commit it for me since I don't have write-access. Thanks! Daniel. 2014-04-17 Daniel Gutson gdb/cli/ * cli-cmds.c (_initialize_cli_cmds): Improve help message for the quit command. On Thu, Apr 17, 2014 at 6:34 PM, Daniel Gutson wrote: > On Thu, Apr 17, 2014 at 6:32 PM, Doug Evans wrote: >> On Thu, Apr 17, 2014 at 12:08 PM, Daniel Gutson >> wrote: >>> Sorry. Please ignore this email. >>> >>> I just noticed that "quit" already accepts an argument. >> >> Heh. >> IWBN if "help quit" pointed this out though. > > I thought the same, since that was the first thing I did (help quit > and apropos exit), > it would have helped. > I'll fix the help and send the patch. > > -- > > Daniel F. Gutson > Chief Engineering Officer, SPD > > > San Lorenzo 47, 3rd Floor, Office 5 > > Córdoba, Argentina > > > Phone: +54 351 4217888 / +54 351 4218211 > > Skype: dgutson diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index bfcd975..40967bf 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1685,7 +1685,9 @@ strict == evaluate script according to filename extension, error if not supporte show_script_ext_mode, &setlist, &showlist); - add_com ("quit", class_support, quit_command, _("Exit gdb.")); + add_com ("quit", class_support, quit_command, _("\ +Exit gdb.\n\ +Can optionally be followed by the exit code that gdb should return.")); c = add_com ("help", class_support, help_command, _("Print list of commands.")); set_cmd_completer (c, command_completer);