Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ijackson opened this issue Oct 21, 2020 · 2 comments
Open

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

ijackson opened this issue Oct 21, 2020 · 2 comments

Comments

@ijackson
Copy link
Contributor

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.

@kinnison
Copy link
Contributor

The rust-gdb wrapper is provided from the https://github.com/rust-lang/rust project in the compiler component. Nominally the best way to get this resolved would be to get the wrapper into the compiler repo and exported into the channel components. From there we can add a proxy wrapper in rustup and then we're connected end-to-end. Short-term if you've managed to record with a plain rr record target/debug/blah then you might get away with env RUST_GDB="rr replay" rust-gdb

@kinnison
Copy link
Contributor

kinnison commented Jun 8, 2021

@rust-lang/compiler I'm not sure if you're quite the right team to ping, but what do we think about providing a rust-rr wrapper which then we could provide a rustup proxy for?

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

No branches or pull requests

2 participants