From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id SMV1L1LbkmTo0QkAWB0awg (envelope-from ) for ; Wed, 21 Jun 2023 07:13:22 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=l36H3DP0; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A4B271E0BB; Wed, 21 Jun 2023 07:13:22 -0400 (EDT) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 87E7D1E0AC for ; Wed, 21 Jun 2023 07:13:20 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A5611385842A for ; Wed, 21 Jun 2023 11:13:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A5611385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687345999; bh=ltRIWdfwFhOrFuliwgYeglEgc/JktIAlgDyVh2Sk7Qc=; h=Date:To:Cc:In-Reply-To:Subject:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=l36H3DP0B1lclM+4NvwDtsN9eB8DWjpMR1GdjDYckmqkbB45jUiXRvZ+INlcp+p2L XqfAimBVwtgi4Cy2AQarnmIG1D1GLnhUgcswQEd/eseAA1tbdCdq5Vzg4Jj+f8Vj8F gYrEH0tQC1zTUc7RM4Z0RWmwgaU3L/EBYPf+pVsg= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 4C37F3858D28 for ; Wed, 21 Jun 2023 11:12:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4C37F3858D28 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBvli-0002b0-Ov; Wed, 21 Jun 2023 07:12:58 -0400 Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBvli-0006BV-8i; Wed, 21 Jun 2023 07:12:58 -0400 Date: Wed, 21 Jun 2023 14:13:07 +0300 Message-Id: <838rcd5arg.fsf@gnu.org> To: Bruno Larsen Cc: gdb-patches@sourceware.org In-Reply-To: <20230621104545.2530552-5-blarsen@redhat.com> (message from Bruno Larsen on Wed, 21 Jun 2023 12:45:45 +0200) Subject: Re: [PATCH v3 4/4] gdb/doc: document '+' argument for 'list' command References: <20230621104545.2530552-1-blarsen@redhat.com> <20230621104545.2530552-5-blarsen@redhat.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: , From: Eli Zaretskii via Gdb-patches Reply-To: Eli Zaretskii Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > From: Bruno Larsen > Cc: Bruno Larsen , > Eli Zaretskii > Date: Wed, 21 Jun 2023 12:45:45 +0200 > > The command 'list' has accepted the argument '+' for many years already, > but this option wasn't documented either in the texinfo docs or in the > help text for the command. This commit documents it. > > Reviewed-By: Eli Zaretskii > --- > gdb/cli/cli-cmds.c | 1 + > gdb/doc/gdb.texinfo | 4 ++++ > 2 files changed, 5 insertions(+) > > diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c > index a966142eaea..b7cbe673985 100644 > --- a/gdb/cli/cli-cmds.c > +++ b/gdb/cli/cli-cmds.c > @@ -2822,6 +2822,7 @@ and send its output to SHELL_COMMAND.")); > List specified function or line.\n\ > With no argument, lists ten more lines after or around previous listing.\n\ > \"list .\" lists ten lines arond where the inferior is stopped.\n\ > +\"list +\" lists the ten lines following a previous ten-line listing.\n\ > \"list -\" lists the ten lines before a previous ten-line listing.\n\ > One argument specifies a line, and ten lines are listed around that line.\n\ > Two arguments with comma between specify starting and ending lines to list.\n\ This part is OK. > diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo > index e4e374d138c..f9c3c90e16a 100644 > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -9149,6 +9149,10 @@ Stack}), this prints lines centered around that line. If no > @code{list} command has been used and no solitary line was printed, > it prints the lines around the function @code{main}. > > +@item list + > +Same as using with no arguments, but errors out if the line is > +past the end of the file. But here it looks like some copy/pasta error?