rr-debugger / rr-debugger/rr

Add checkpoint push/pop command

Open
#1,651 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.7k
Forks
662
Avg merge
2d 3h
Merged PRs (30d)
2

Description

checkpoint push - Push an anonymous checkpoint and add it to a checkpoint stack
checkpoint pop - Restore to the current top of the checkpoint stack and pop
info checkpoint stack - (optional) List the current checkpoint stack

Having the above command would make it easier to build user define commands that need change the program state. For instance I'd like to have something like to make it easier to debug reftest:

define show frame tree
  checkpoint push
  <goto prev refresh driver tick>
  print "Current:"
  call frame->DumpFrameTree()
  <goto next refresh driver tick>
  print "Next:"
  call frame->DumpFrameTree()
  checkpoint pop
end

If we think it's a good idea I can build a PR for this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating rr’s debugger command-handling entry points and the code that manages program-state checkpoints; the issue names no files or tests. Trace how user-defined commands invoke debugger commands, then add coverage for push/pop restoration and the optional stack listing. Done means the requested commands work together without leaving program state changed.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.