From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rock.gnat.com (rock.gnat.com [205.232.38.15]) by sourceware.org (Postfix) with ESMTP id 9079C385ED4A for ; Fri, 25 Sep 2020 19:49:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9079C385ED4A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey@adacore.com Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 71312117A1A; Fri, 25 Sep 2020 15:49:16 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at gnat.com 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 CWy1F7VchfYJ; Fri, 25 Sep 2020 15:49:16 -0400 (EDT) Received: from murgatroyd.Home (184-96-226-199.hlrn.qwest.net [184.96.226.199]) (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 2377F1179DD; Fri, 25 Sep 2020 15:49:16 -0400 (EDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH v2 5/6] Document inclusive range in help for "find" Date: Fri, 25 Sep 2020 13:49:12 -0600 Message-Id: <20200925194913.1744541-6-tromey@adacore.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200925194913.1744541-1-tromey@adacore.com> References: <20200925194913.1744541-1-tromey@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2020 19:49:17 -0000 PR gdb/16930 points out that the "find" command uses an inclusive range; but this is not documented in the "help". This patch updates the help text. 2020-09-25 Tom Tromey PR gdb/16930: * findcmd.c (_initialize_mem_search): Mention that the range is inclusive. --- gdb/ChangeLog | 6 ++++++ gdb/findcmd.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gdb/findcmd.c b/gdb/findcmd.c index c8631571f20..3e4a790b589 100644 --- a/gdb/findcmd.c +++ b/gdb/findcmd.c @@ -292,6 +292,7 @@ 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\ +The two-address form specifies an inclusive range.\n\ Note that this means for example that in the case of C-like languages\n\ a search for an untyped 0x42 will search for \"(int) 0x42\"\n\ which is typically four bytes, and a search for a string \"hello\" will\n\ -- 2.26.2