Skip to content

Add "when-end" command to get the number of the last event#4084

Open
timo wants to merge 1 commit into
rr-debugger:masterfrom
timo:when-end_command
Open

Add "when-end" command to get the number of the last event#4084
timo wants to merge 1 commit into
rr-debugger:masterfrom
timo:when-end_command

Conversation

@timo

@timo timo commented Jul 20, 2026

Copy link
Copy Markdown

when-end gives the event number of the last event in the whole recording.

This is useful when running a replay with non-stopping breakpoints and displaying the "progress" of the replay to the user.

I'm not actually sure if result.type() == TraceTaskEvent::Type::NONE is an idiomatic way to see if the read_task_event call returned the "default value" of that type. But it does at least seem to work in the cases I've tested.

@rocallahan

Copy link
Copy Markdown
Collaborator

I think this caused that test failure in when.py ... on Aarch64 ... with LLDB :-(.
I guess you could look into it by pushing test PRs with extra logging, maybe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants