From patchwork Thu Feb 14 15:01:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 31467 Received: (qmail 22030 invoked by alias); 14 Feb 2019 15:01:15 -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 21976 invoked by uid 89); 14 Feb 2019 15:01:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Usage, quests, pet, HContent-Transfer-Encoding:8bit X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 14 Feb 2019 15:01:12 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 107BC560B3; Thu, 14 Feb 2019 10:01:11 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KBgcT2L2Yase; Thu, 14 Feb 2019 10:01:11 -0500 (EST) Received: from murgatroyd.Home (75-166-72-210.hlrn.qwest.net [75.166.72.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id B1B2056075; Thu, 14 Feb 2019 10:01:10 -0500 (EST) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Use upper case for metasyntactic variables in "help find" Date: Thu, 14 Feb 2019 08:01:08 -0700 Message-Id: <20190214150108.25937-1-tromey@adacore.com> MIME-Version: 1.0 While answering a user's question on irc, I realized that the metasyntactic variables in "help find" are not in upper case. As you know this is one of my pet quests, so here is a patch to fix this. Tested on x86-64 Fedora 29. gdb/ChangeLog 2019-02-14 Tom Tromey * findcmd.c (_initialize_mem_search): Use upper case for metasyntactic variables. --- gdb/ChangeLog | 5 +++++ gdb/findcmd.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/findcmd.c b/gdb/findcmd.c index cd461003d36..52f8f80aaae 100644 --- a/gdb/findcmd.c +++ b/gdb/findcmd.c @@ -286,9 +286,9 @@ _initialize_mem_search (void) add_cmd ("find", class_vars, find_command, _("\ Search memory for a sequence of bytes.\n\ Usage:\nfind \ -[/size-char] [/max-count] start-address, end-address, expr1 [, expr2 ...]\n\ -find [/size-char] [/max-count] start-address, +length, expr1 [, expr2 ...]\n\ -size-char is one of b,h,w,g for 8,16,32,64 bit values respectively,\n\ +[/SIZE-CHAR] [/MAX-COUNT] START-ADDRESS, END-ADDRESS, EXPR1 [, EXPR2 ...]\n\ +find [/SIZE-CHAR] [/MAX-COUNT] START-ADDRESS, +LENGTH, EXPR1 [, EXPR2 ...]\n\ +SIZE-CHAR is one of b,h,w,g for 8,16,32,64 bit values respectively,\n\ and if not specified the size is taken from the type of the expression\n\ in the current language.\n\ Note that this means for example that in the case of C-like languages\n\