From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id SHC/Nx2tkWTfBwkAWB0awg (envelope-from ) for ; Tue, 20 Jun 2023 09:43:57 -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=uj+92cyU; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E02771E0BB; Tue, 20 Jun 2023 09:43:57 -0400 (EDT) Received: from sourceware.org (server2.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 D1C271E0AC for ; Tue, 20 Jun 2023 09:43:55 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 677CB3858425 for ; Tue, 20 Jun 2023 13:43:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 677CB3858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687268635; bh=esr5d5WhPSc+8T+a/BdA19Ei3wwp1jUxON6dcF1TnqY=; 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=uj+92cyUZVWJAfCJ5p9tOfJRKofn3ejsYZ8cPyynS4Vf+s40wyzse/psrvVJ2hamt iOAvA9JvVW4g1lKV3gjMi3dvVzaa4Ukuns/n1iYkxIr9uCZKqYV7wWw0AEf6ocz6IX mev6Tajq/KU9CDUb2mcE8YI5GtOlVDwIMmGcDbhQ= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id E11A23857715 for ; Tue, 20 Jun 2023 13:43:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E11A23857715 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 1qBbdw-0001GH-IS; Tue, 20 Jun 2023 09:43:36 -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 1qBbdv-0003IE-L7; Tue, 20 Jun 2023 09:43:36 -0400 Date: Tue, 20 Jun 2023 16:43:43 +0300 Message-Id: <83ttv25jw0.fsf@gnu.org> To: Bruno Larsen Cc: gdb-patches@sourceware.org In-Reply-To: <20230620122910.2459069-3-blarsen@redhat.com> (message from Bruno Larsen via Gdb-patches on Tue, 20 Jun 2023 14:29:12 +0200) Subject: Re: [PATCH 2/3] gdb/cli: Improve UX when using list with no args References: <20230620122910.2459069-1-blarsen@redhat.com> <20230620122910.2459069-3-blarsen@redhat.com> X-Spam-Status: No, score=1.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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" > Cc: Bruno Larsen > Date: Tue, 20 Jun 2023 14:29:12 +0200 > From: Bruno Larsen via Gdb-patches > > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -78,6 +78,11 @@ > functionality is also available for dprintf when dprintf-style is > 'gdb'. > > +* Using the 'list' command with no arguments in a situation where the > + command would attempt to list past the end of the file, instead of > + erroring out, it will now warn the user that the end of file has been > + reached and the default location. ^^^^^^^^^^^^^^^^^^^^^^^^ What is that "and the default location" part about? It looks misplaced. Thanks.