From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org 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 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xEzJ33pcNJYlw1Dm8B8stGkcN80aQECffuCKjQj0x6w=; b=Gmc+ygkGonpa RptAG4WH8da5ijxnZooZBXZXzfoaloVfpLL5C9nHBrTll9hu1gMrUHFtUbt1X1xpU+GI1DlGSNIKn JaCuCgKwgwgr3uF+TD3nGvqZjcm0xvzq+n8dX9RCzyBcLN26p2aZhNkjWVaFfcYcjSbD+OGdBwaMY RxNKruAh6GVZTDIZjTES4gfNL2Nh3A8Asiu1NXnChVitKwUXDSxDsQqqExTt+jAiS3H9oC6sDJmx/ XdxD/DM3HEQ25j1WzwHDjlAeXcT2H3oVgRtVJoAm7eQKp8h2kmirKoxOA0CdUBf4uhn6q8JabSJty uMjWnBSteFXocZxv+UTPcA==; 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> From: Eli Zaretskii 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 List-Id: > 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.