public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug record/22725] "run" seems to reset btrace recording
       [not found] <bug-22725-4717@http.sourceware.org/bugzilla/>
@ 2024-01-12 10:12 ` blarsen at redhat dot com
  0 siblings, 0 replies; only message in thread
From: blarsen at redhat dot com @ 2024-01-12 10:12 UTC (permalink / raw)
  To: gdb-prs

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

Guinevere Larsen <blarsen at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blarsen at redhat dot com

--- Comment #1 from Guinevere Larsen <blarsen at redhat dot com> ---
I still see this issue on current GDB, so this is still a valid bug

Adding "pt" at the end of "record btrace" is not required, that is completely
unrelated to your issue. Also, btrace is incidental, this issue also occurs
with record full.

I think the problem is that when you "run" or "start" the inferior, the target
stack gets re-set and there is nothing in GDB that checks if there was a record
target that should be added again.

A related problem is that the target has to have started running before we can
start recording. It would be nice if you could set a target to record before
even running.

The issue with solving this comes from the question: when should the recording
target be added? once we enter main? Once we enter __libc_start_main? I would
argue that most users would want the former, but that is a decision that needs
to be made, and properly handled in the run and start codes.

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-12 10:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-22725-4717@http.sourceware.org/bugzilla/>
2024-01-12 10:12 ` [Bug record/22725] "run" seems to reset btrace recording blarsen at redhat dot com

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).