From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 38EE23858298; Fri, 14 Jul 2023 09:03:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38EE23858298 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689325430; bh=GPivxTSrUxzcKcnomlpgHvrDJjq3HGbVkPEIjflmjHQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Exyiq09Nr8OcAEMzSiHVqRe+Nrm9B/mVDafBnLY1OBKthQIyarUmJOjjisku61w8/ xypKM2CkFC4E56q2iEs96oSWyX1AdukJrFZHDARA3nA99avcHe8LGsSNW7SMcg1fvm cBTJWjhuynWdbDZ62PKTg9LDdlqYx9yKgIdUiXqY= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug cli/30497] Bad User Experience with multiple list commands reaching end of file Date: Fri, 14 Jul 2023 09:03:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: cli X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30497 --- Comment #1 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Bruno Larsen : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Df52625f1f29a= 87e94aa9d40e1b76be2d0ecedc10 commit f52625f1f29a87e94aa9d40e1b76be2d0ecedc10 Author: Bruno Larsen Date: Thu Jun 15 11:17:07 2023 +0200 gdb/cli: Improve UX when using list with no args When using "list" with no arguments, GDB will first print the lines around where the inferior is stopped, then print the next N lines until reaching the end of file, at which point it warns the user "Line X out of range, file Y only has X-1 lines.". This is usually desirable, but if the user can no longer see the original line, they may have forgotten the current line or that a list command was used at all, making GDB's error message look cryptic. It was reported in bugzilla as PR cli/30497. This commit improves the user experience by changing the behavior of "list" slightly when a user passes no arguments. It now prints that the end of the file has been reached and recommends that the user use the command "list ." instead. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30497 Reviewed-By: Eli Zaretskii Approved-By: Tom Tromey --=20 You are receiving this mail because: You are on the CC list for the bug.=