Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Guinevere Larsen via Gdb <gdb@sourceware.org>
To: Luis Machado <luis.machado@arm.com>,
	"gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: Wondering if record save should be deprecated
Date: Tue, 16 Jul 2024 10:27:06 -0300	[thread overview]
Message-ID: <5462c674-7a07-4cbf-b43b-19cdd1058bb7@redhat.com> (raw)
In-Reply-To: <f29497c4-0f76-4ebe-9657-c4c7b1c9c08b@arm.com>

On 7/16/24 9:24 AM, Luis Machado wrote:
> On 7/10/24 20:58, Guinevere Larsen via Gdb wrote:
>> Hi everyone!
>>
>> I decided to try a bit of a different workflow for reverse debugging and noticed that using "record save", then loading that file in a new gdb session, and I noticed this generated an assert. The assert itself is not too hard to solve (Hannes had a patch ready when I mentioned it in IRC), but it had me wondering: this bug is present since GDB 10, and there are no bugs in bugzilla about it.
>>
>> In fact, searching for "record save" only has a stack overflow question from 2.5 years ago that uses precsave, but is about a separate topic. Everything else, including the few reverse debugging tutorials I've seen, never mention this option.
>>
>> Does it make sense for us to continue supporting this feature that was nigh unusable for 5 releases without anyone noticing? Does anyone reading this makes use of this feature and managed to somehow avoid that crash?
>>
> If it is easy enough to fix, sounds like that is the way then. As for whether people are using this,
> it is hard to tell. I've been hearing more and more about people using RR for their
> reverse debugging needs. Does it also save state?
>
Yes. RR has 2 completely separate phases, one recording the execution of 
the inferior, and another opening a gdbserver that uses that recording 
for execution. So it's not like GDB is the only way to get a recording 
of a broken execution to be debugged later. The difference is that with 
RR you decide at the start that you want to record things, and with GDB 
you can decide mid-debugging session. And that RR only works for a few 
x86_64 CPUs, while GDB supports many more.

I've been convinced, let's keep it :)

-- 
Cheers,
Guinevere Larsen
She/Her/Hers


      reply	other threads:[~2024-07-16 13:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-10 19:58 Guinevere Larsen via Gdb
2024-07-11 16:52 ` Keith Seitz via Gdb
2024-07-16 12:24 ` Luis Machado via Gdb
2024-07-16 13:27   ` Guinevere Larsen via Gdb [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=5462c674-7a07-4cbf-b43b-19cdd1058bb7@redhat.com \
    --to=gdb@sourceware.org \
    --cc=blarsen@redhat.com \
    --cc=luis.machado@arm.com \
    /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