From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22437 invoked by alias); 12 Jun 2018 21:58:28 -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 22416 invoked by uid 89); 12 Jun 2018 21:58:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=sk:_initia, D*be, online X-HELO: mailsec102.isp.belgacom.be Received: from mailsec102.isp.belgacom.be (HELO mailsec102.isp.belgacom.be) (195.238.20.98) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Jun 2018 21:58:26 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2AfBgCvQSBb/+ApQFdcHQEBBQELAYNDg?= =?us-ascii?q?U8SKIN4iGOOCDEBlCmBeAsrAYRAAoIxIjYWAQIBAQEBAQECAWwogjUiglIBBSM?= =?us-ascii?q?zMwgDGAICJgICOR4ZhSesDYIchFuDboFogQuJET+EG4Q8gQSCNIJVAow2jFAHA?= =?us-ascii?q?oFnjRKNMpE4gUgFLIFSbYMWkFE9MIENCAwBjCeCSAEB?= X-IPAS-Result: =?us-ascii?q?A2AfBgCvQSBb/+ApQFdcHQEBBQELAYNDgU8SKIN4iGOOCDE?= =?us-ascii?q?BlCmBeAsrAYRAAoIxIjYWAQIBAQEBAQECAWwogjUiglIBBSMzMwgDGAICJgICO?= =?us-ascii?q?R4ZhSesDYIchFuDboFogQuJET+EG4Q8gQSCNIJVAow2jFAHAoFnjRKNMpE4gUg?= =?us-ascii?q?FLIFSbYMWkFE9MIENCAwBjCeCSAEB?= Received: from 224.41-64-87.adsl-dyn.isp.belgacom.be (HELO md) ([87.64.41.224]) by relay.skynet.be with ESMTP/TLS/AES256-GCM-SHA384; 12 Jun 2018 23:58:15 +0200 Message-ID: <1528840695.2365.2.camel@skynet.be> Subject: Re: [RFA] Fix/improve on-line help of 'define' command. From: Philippe Waroquiers To: gdb-patches@sourceware.org Date: Tue, 12 Jun 2018 21:58:00 -0000 In-Reply-To: <20180604213136.32395-1-philippe.waroquiers@skynet.be> References: <20180604213136.32395-1-philippe.waroquiers@skynet.be> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00322.txt.bz2 Ping ? On Mon, 2018-06-04 at 23:31 +0200, Philippe Waroquiers wrote: > While I was playing with 'define' to understand how some quoting was > done (or not done), I found an inconsistency between the doc > and the online help. > => the doc is correct, so fixing/improving the on-line help. > > 2018-06-04 Philippe Waroquiers > > * cli/cli-script.c (_initialize_cli_script): Fix online documentation > of 'define' command. > --- > gdb/cli/cli-script.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c > index 72de8ec1c7..8ceecdf435 100644 > --- a/gdb/cli/cli-script.c > +++ b/gdb/cli/cli-script.c > @@ -1602,7 +1602,8 @@ Define a new command name. Command name is argument.\n\ > Definition appears on following lines, one command per line.\n\ > End with a line of just \"end\".\n\ > Use the \"document\" command to give documentation for the new command.\n\ > -Commands defined in this way may have up to ten arguments.")); > +Commands defined in this way may accept an unlimited number of arguments\n\ > +accessed via $arg0 .. $argN. $argc tells how many arguments have been passed.")); > > add_com ("while", class_support, while_command, _("\ > Execute nested commands WHILE the conditional expression is non zero.\n\