Skip to content

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

Merged
rocallahan merged 1 commit into
rr-debugger:masterfrom
timo:when-end_command
Jul 22, 2026
Merged

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

Conversation

@timo

@timo timo commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

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.

@timo
timo force-pushed the when-end_command branch 2 times, most recently from 7217770 to 8bbb72c Compare July 22, 2026 13:38
@timo
timo force-pushed the when-end_command branch from 8bbb72c to 9531ebd Compare July 22, 2026 13:42
@rocallahan
rocallahan merged commit c98d073 into rr-debugger:master Jul 22, 2026
5 checks passed
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