rust-lang / rust-lang/rustup

Please provide rustup wrapper rust-rr, like rust-gdb but for rr

Open
#2,533 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

I would like to use rr (the time travelling debugger) with Rust.

I found the following resources:

  1. https://rr-project.org/ contains instructions on using rr
  2. rustup's rust-gdb wrapper, which seems from looking at strace to do some gdb configuration
  3. https://gist.github.com/spacejam/15f27007c0b1bcc1d6b4c9169b18868c https://gist.github.com/spacejam/0ec039d4b3bb0ac976245975de8f3a25 gists on how to use rust with rr, and with rust pretty printers.

I'm not sure precisely how the information/configuration from these sources should be combined, particularly given that the behaviour of rust-gdb is rather opaque (see #2532). Probably some experimenting would determine the right combination of things, and then we could have a rust-rr wrapper.

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 reading rustup's existing rust-gdb wrapper, then compare its behavior with the rr-project instructions and the two linked Rust-with-rr gists. Determine which debugger configuration and Rust pretty-printer setup the wrapper needs; done means a rust-rr command works reliably with Rust programs.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
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.