rr-debugger / rr-debugger/rr

`--serve-files` option should be read from trace

Open
#4,000 0 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

Currently --serve-files can only read files that were copied into the trace dir. This makes sense because it was intended to serve various executables and shared libraries to gdb. However, I don't see any reason why we couldn't also write out files that were copied into the trace. Currently in this case you get:

(rr) remote get /tmp/jl_XrKiUH/sys.o.a input2.o.a
Remote I/O error: Invalid argument

Since I wrote this feature this is probably a TODO for myself.

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 the --serve-files implementation and the remote get handling described in the issue. Trace how copied files are exposed from the trace directory, then make remote get work for those files as well and verify that the shown input2.o.a operation succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
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.