From patchwork Mon Jun 4 21:31:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Waroquiers X-Patchwork-Id: 27625 Received: (qmail 69331 invoked by alias); 4 Jun 2018 21:31:48 -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 68629 invoked by uid 89); 4 Jun 2018 21:31:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.8 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=unlimited, on-line, argn, philippe.waroquiers@skynet.be X-HELO: mailsec105.isp.belgacom.be Received: from mailsec105.isp.belgacom.be (HELO mailsec105.isp.belgacom.be) (195.238.20.101) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 04 Jun 2018 21:31:45 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2DACAAGrxVb/2wz8VFcHgEGDINDgU8SK?= =?us-ascii?q?IxbjA8BgikBlBmBeAsrAYRAghEiNhYBAgEBAQEBAQIBayiCNSKDLiNPSzeDIoI?= =?us-ascii?q?FqHqEWINpgWiKFj+IWIEDhQgCjC6MQAcCgWeMcQuNGQGRH4FIByqBUm2DFpBQP?= =?us-ascii?q?TB4ARoBiz2CRwEB?= X-IPAS-Result: =?us-ascii?q?A2DACAAGrxVb/2wz8VFcHgEGDINDgU8SKIxbjA8BgikBlBm?= =?us-ascii?q?BeAsrAYRAghEiNhYBAgEBAQEBAQIBayiCNSKDLiNPSzeDIoIFqHqEWINpgWiKF?= =?us-ascii?q?j+IWIEDhQgCjC6MQAcCgWeMcQuNGQGRH4FIByqBUm2DFpBQPTB4ARoBiz2CRwE?= =?us-ascii?q?B?= Received: from 108.51-241-81.adsl-dyn.isp.belgacom.be (HELO md.home) ([81.241.51.108]) by relay.skynet.be with ESMTP/TLS/DHE-RSA-AES128-GCM-SHA256; 04 Jun 2018 23:31:43 +0200 From: Philippe Waroquiers To: gdb-patches@sourceware.org Cc: Philippe Waroquiers Subject: [RFA] Fix/improve on-line help of 'define' command. Date: Mon, 4 Jun 2018 23:31:36 +0200 Message-Id: <20180604213136.32395-1-philippe.waroquiers@skynet.be> X-IsSubscribed: yes 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\