public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Christian Biesinger <cbiesinger@google.com>
To: Bruno Larsen <blarsen@redhat.com>
Cc: Reuben Thomas via Gdb <gdb@sourceware.org>
Subject: Re: [RFC] Change displayed line when execution direction is reversed
Date: Wed, 15 Jun 2022 08:34:41 -0400	[thread overview]
Message-ID: <CAPTJ0XGoqSiA+kxk1X6kkpaDOmZsdXjvcvMbHK92suiqLYn9AA@mail.gmail.com> (raw)
In-Reply-To: <040e723a-1f8b-3fb2-a076-85664243513f@redhat.com>

My personal opinion:
In general, the state of the program when gdb is stopped is the state
at the start of the displayed line (I concede that it gets more
complicated when "step"ping)
This change would make it so the state is the state at the end of the
displayed line.

I think that could be confusing? Perhaps could be mitigated by
printing a message explaining that in some way.

Christian

On Wed, Jun 15, 2022 at 8:26 AM Bruno Larsen via Gdb <gdb@sourceware.org> wrote:
>
> Hello all,
>
> I was doing some reverse debugging and noticed that setting the execution direction to reverse does not change how GDB displays lines. The problem with this is that the user doesn't see what will be executed if a step is taken, which makes the user experience quite annoying. How would the community feel if GDB printed the previous line, instead of current line, when the execution direction is reversed?
>
> Sorry if this is the wrong list. It didn't feel like a bug, and I don't have a patch yet, so this felt like the best place to send.
> --
> Cheers!
> Bruno Larsen
>

  reply	other threads:[~2022-06-15 12:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-15 12:25 Bruno Larsen
2022-06-15 12:34 ` Christian Biesinger [this message]
2022-06-15 12:39   ` Bruno Larsen
2022-06-15 12:47     ` Christian Biesinger
2022-06-15 12:49       ` Bruno Larsen
2022-06-15 12:57         ` Christian Biesinger
2022-06-17 12:07 ` Pedro Alves
2022-06-17 13:03   ` Bruno Larsen
2022-06-17 13:44     ` Pedro Alves
2022-06-17 19:35       ` Bruno Larsen

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=CAPTJ0XGoqSiA+kxk1X6kkpaDOmZsdXjvcvMbHK92suiqLYn9AA@mail.gmail.com \
    --to=cbiesinger@google.com \
    --cc=blarsen@redhat.com \
    --cc=gdb@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).