From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id qX7TEyiukWSMCAkAWB0awg (envelope-from ) for ; Tue, 20 Jun 2023 09:48:24 -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=JkS0C8Ti; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 47AB01E0BB; Tue, 20 Jun 2023 09:48:24 -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 346CF1E0AC for ; Tue, 20 Jun 2023 09:48:22 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A55553857B9B for ; Tue, 20 Jun 2023 13:48:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A55553857B9B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687268901; bh=xEzJ33pcNJYlw1Dm8B8stGkcN80aQECffuCKjQj0x6w=; 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=JkS0C8Tiuu06c0cP7fbc4KOAkIcXmnGinrzPyJRCvlPo91rpJpksnQaD6W9Y6JWVw nCIXDsL77vU09b7btW9KcMJXAbHMvJuCOGA6EKVmOO8ZJ/aMXCJmDm4B2BWgtmGVj7 up0toxNW6iKXRvvReLdk+DBf208ZABr54qNNVBk8= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 972053858C54 for ; Tue, 20 Jun 2023 13:48:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 972053858C54 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 1qBbiD-0002QE-7b; Tue, 20 Jun 2023 09:48:01 -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 1qBbiB-0003yu-Om; Tue, 20 Jun 2023 09:48:00 -0400 Date: Tue, 20 Jun 2023 16:48:07 +0300 Message-Id: <83r0q65joo.fsf@gnu.org> To: Bruno Larsen Cc: gdb-patches@sourceware.org In-Reply-To: <72e04013-9a92-cde5-2312-61e5d5bc4f3d@redhat.com> (message from Bruno Larsen on Tue, 20 Jun 2023 15:46:20 +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> <83ttv25jw0.fsf@gnu.org> <72e04013-9a92-cde5-2312-61e5d5bc4f3d@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" > Date: Tue, 20 Jun 2023 15:46:20 +0200 > Cc: gdb-patches@sourceware.org > From: Bruno Larsen > > On 20/06/2023 15:43, Eli Zaretskii wrote: > >> 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. > > > Oops. It is incomplete. It should have been "And the default location > will be printed", default location being either where the inferior is > (if it has started already) or around the main function. If so, I think this also warrants to be mentioned in the manual. Thanks.