-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Set path of the compile unit to the source directory #82102
Conversation
As part of the effort to implement split dwarf debug info, we ended up setting the compile unit location to the output directory rather than the source directory. Furthermore, it seems like we failed to remap the prefixes for this as well! The desired behaviour is to instead set the `DW_AT_GNU_dwo_name` to a path relative to compiler's working directory. This still allows debuggers to find the split dwarf files, while not changing the behaviour of the code that is compiling with regular debug info, and not changing the compiler's behaviour with regards to reproducibility. Fixes rust-lang#82074
(rust-highfive has picked a reviewer for you, use r? to override) |
7fa82ed
to
fe25aa5
Compare
This comment has been minimized.
This comment has been minimized.
fe25aa5
to
b5da9fe
Compare
This comment has been minimized.
This comment has been minimized.
r? @davidtwco |
r=me unless fixing the test failure requires sufficient changes to warrant another look. |
Huh, so what's happening is that
From what I can tell the right place to solve this would be in the |
This comment has been minimized.
This comment has been minimized.
4195593
to
6813469
Compare
This comment has been minimized.
This comment has been minimized.
6813469
to
956b5ce
Compare
@bors r=davidtwco rollup=never |
📌 Commit 956b5ce7a12ba82163dc835a43421d5056800578 has been approved by |
⌛ Testing commit 956b5ce7a12ba82163dc835a43421d5056800578 with merge aaa3ae5fd54761939253c04f4f1e0c238045480c... |
Please r-! This is pointing the llvm-project submodule at a commit that does not exist in any branches on https://github.com/rust-lang/llvm-project/ |
@bors r- |
This comment has been minimized.
This comment has been minimized.
@bors r=davidtwco |
This comment has been minimized.
This comment has been minimized.
📌 Commit beb3f1e885c619f7964a093d72d56446e9c0bdae has been approved by |
This comment has been minimized.
This comment has been minimized.
⌛ Testing commit beb3f1e885c619f7964a093d72d56446e9c0bdae with merge 79516cd72305b88a97aefb8071e57e71693a02a4... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
Make sure that we don't regress setting of the CU directory to the working directory.
Includes rust-lang/llvm-project#90 in particular.
beb3f1e
to
925ed48
Compare
@bors r=davidtwco |
📌 Commit 925ed48 has been approved by |
☀️ Test successful - checks-actions |
As part of the effort to implement split dwarf debug info, we ended up
setting the compile unit location to the output directory rather than
the source directory. Furthermore, it seems like we failed to remap the
prefixes for this as well!
The desired behaviour is to instead set the
DW_AT_GNU_dwo_name
to apath relative to compiler's working directory. This still allows
debuggers to find the split dwarf files, while not changing the
behaviour of the code that is compiling with regular debug info, and not
changing the compiler's behaviour with regards to reproducibility.
Fixes #82074
cc @alexcrichton @davidtwco