public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: "Metzger, Markus T" <markus.t.metzger@intel.com>
To: Guinevere Larsen <blarsen@redhat.com>,
	Alex Chronopoulos <achronop@gmail.com>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Cc: Pedro Alves <pedro@palves.net>, Eli Zaretskii <eliz@gnu.org>
Subject: RE: [PATCH v3] Change message when reaching end of reverse history.
Date: Fri, 14 Jun 2024 07:48:04 +0000	[thread overview]
Message-ID: <DM8PR11MB574993351530823E950C1CF0DEC22@DM8PR11MB5749.namprd11.prod.outlook.com> (raw)
In-Reply-To: <5c867d2e-439b-443d-ace1-5e2caf5100b2@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 5688 bytes --]

It comes down to a matter of personal taste and I believe the most important part of this is consistency throughout GDB.  I would leave the final decision on the wording to Eli.

Regards,
Markus.

From: Guinevere Larsen <blarsen@redhat.com>
Sent: Monday, May 6, 2024 4:51 PM
To: Metzger, Markus T <markus.t.metzger@intel.com>; Alex Chronopoulos <achronop@gmail.com>; gdb-patches@sourceware.org
Cc: Pedro Alves <pedro@palves.net>
Subject: Re: [PATCH v3] Change message when reaching end of reverse history.

On 5/6/24 02:19, Metzger, Markus T wrote:
I’d prefer compact, one-line (error) messages.  A longer explanation can go into the manual or in the help text.  E.g.

    Stopping replaying at end of execution history

This simple message brings us all the way back around to the original problem. It's not obvious to a new user that they can keep going and things will continue to be recorded.

If you really want something very short, a "check 'help record'" hint and some text explaining that forward execution can always be resumed (if using record full or record btrace), and if you're executing further new forward execution is added to history, that's ok too.

I don't think the manual is enough, if nothing else, because new users are unlikely to find and read the manual in my experience.

--

Cheers,

Guinevere Larsen

She/Her/Hers

and

    Stopping at beginning of execution history

Markus.

From: Alex Chronopoulos <achronop@gmail.com><mailto:achronop@gmail.com>
Sent: Friday, May 3, 2024 7:17 PM
To: gdb-patches@sourceware.org<mailto:gdb-patches@sourceware.org>
Cc: Pedro Alves <pedro@palves.net><mailto:pedro@palves.net>; Metzger, Markus T <markus.t.metzger@intel.com><mailto:markus.t.metzger@intel.com>; Guinevere Larsen <blarsen@redhat.com><mailto:blarsen@redhat.com>
Subject: Re: [PATCH v3] Change message when reaching end of reverse history.


Thank you, Pedro. No worries, it's still early enough :)

I like your suggestions and would happily follow them. I believe they are clear and leave fewer questions for the user.

I also prefer the extended version for the backward case. However, I don't want to make the final call. I'll wait for others to comment, and I'll update the patch when we have the final version.


On Tue, Apr 23, 2024 at 10:36 PM Pedro Alves <pedro@palves.net<mailto:pedro@palves.net>> wrote:
Sorry for not chiming in earlier...

On 2024-04-14 20:36, Alex Chronopoulos wrote:
> In a record session, when we move backward, GDB switches from normal
> execution to simulation. Moving forward again, the emulation continues
> until the end of the reverse history. When the end is reached, the
> execution stops, and a warning message is shown. This message has been
> modified to indicate that the forward emulation has reached the end, but
> the execution can continue as normal, and the recording will also continue.
>
> Before this patch, the warning message shown in that case was the same as
> in the reverse case. This meant that when the end of history was reached in
> either backward or forward emulation, the same message was displayed:
>
> "No more reverse-execution history."
>
> This message remains for backward emulation. However, in forward emulation,
> it has been modified to:
>
> "End of recorded history; following steps will be added to history."
>

IMO, "steps" here is confusing.  It's ambiguous with stepping.  Like as if
you're saying that the following "step" commands will be added to history.
"But what about if I continue??"

It also isn't true that "following steps will be added to history.".  If
the user does "reverse-continue" for example, they won't, they're
already there...

The following tweak would be more accurate and not have that "step" confusion, IMO:

 "End of recorded history; following forward execution will be added to history."

and it's still under 80 chars.

Except it fells a bit awkward, for not stating that we're stopping before
talking about following execution.  This would be clearer to me:

  Reached end of recorded history; stopping.
  Following forward execution will be added to history.


Also, with the patch, we have these two messages, for the forward case:

 End of recorded history; following steps will be added to history.

and for the reverse case:

 No more reverse-execution history.

I read the v1/v2 discussions, and I have to say that I don't understand how
the potential user confusion that led to changing the "No more reverse-execution"
wording in the forward case doesn't apply to the reverse case...  I think
we should be consistent.

With my suggestion above, we could have:

forward:

  Reached end of recorded history; stopping.
  Following forward execution will be added to history.

backward:

  Reached end of recorded history; stopping.

or, backward:

  Reached end of recorded history; stopping.
  Backward execution from here not possible.

Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de<http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Sean Fennelly, Jeffrey Schneiderman, Tiffany Doon Silva
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

      reply	other threads:[~2024-06-14  7:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-14 19:36 Alex Chronopoulos
2024-04-15 10:59 ` Eli Zaretskii
2024-04-23 13:33 ` Guinevere Larsen
2024-04-23 14:03   ` Metzger, Markus T
2024-04-23 17:22     ` Guinevere Larsen
2024-04-23 19:36 ` Pedro Alves
2024-05-03 17:16   ` Alex Chronopoulos
2024-05-06  5:19     ` Metzger, Markus T
2024-05-06 14:50       ` Guinevere Larsen
2024-06-14  7:48         ` Metzger, Markus T [this message]

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=DM8PR11MB574993351530823E950C1CF0DEC22@DM8PR11MB5749.namprd11.prod.outlook.com \
    --to=markus.t.metzger@intel.com \
    --cc=achronop@gmail.com \
    --cc=blarsen@redhat.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@palves.net \
    /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).