public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.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	[thread overview]
Message-ID: <bug-30497-4717-1PQhimkltP@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-30497-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=30497

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Bruno Larsen <blarsen@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f52625f1f29a87e94aa9d40e1b76be2d0ecedc10

commit f52625f1f29a87e94aa9d40e1b76be2d0ecedc10
Author: Bruno Larsen <blarsen@redhat.com>
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=30497
    Reviewed-By: Eli Zaretskii <eliz@gnu.org>
    Approved-By: Tom Tromey <tom@tromey.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  reply	other threads:[~2023-07-14  9:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-30 11:04 [Bug cli/30497] New: " blarsen at redhat dot com
2023-07-14  9:03 ` cvs-commit at gcc dot gnu.org [this message]
2023-07-14  9:06 ` [Bug cli/30497] " blarsen at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30497-4717-1PQhimkltP@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).