rr-debugger / rr-debugger/rr

recognize rr session within gdb

Open
#2,876 14 comments 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

What is the best way to recognize "I'm in rr replay" from gdb script/python api?

I do have some user commands in my gdbinit that change memory of the running process - I'd like to recognize when running a gdb session and then py raise gdb.GdbError("This command does not work during rr replay").

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 with the GDB script and Python API context described in the issue, and investigate how an rr replay session can be distinguished from an ordinary GDB session. Check the existing issue discussion for prior findings. Done means documenting or exposing a reliable detection method that lets the user command reject memory-changing operations during rr replay.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.