Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
session: stabilize split debuginfo on linux #98051
session: stabilize split debuginfo on linux #98051
Changes from all commits
cf2c492
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wesleywiser is this correct? We spoke about Split DWARF technically being possible on Windows GNU before, but I find that if I say
debuginfo_kind: DebuginfoKind::Dwarf
then LLVM complains that the target can't output a DWO because it doesn't use ELF.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not super familiar with
*-windows-gnu
but from what I can see, it looks like rustc generates a single output file (ie, there is no.dwo
or.pdb
) and that output file contains embedded DWARF debuginfo.Eg:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, when I set
DebuginfoKind::Dwarf
for that target, then we got this error....which makes sense when your output shows..
..so it looks like Split DWARF would technically be possible on Windows GNU, but LLVM would need to support DWARF objects on PEI first, and then I would need to extend
thorin
to package DWARF in PEI. But what all of that does mean, is that despite windows-gnu using DWARF, I can't set it toDebuginfoKind::Dwarf
(there's probably still something up becauseDebuginfoKind::Dwarf
andsupported_split_debuginfo: &[SplitDebuginfo::Off]
shouldn't make LLVM do anything).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading Appendix F in the DWARF 5 spec, I don't see why an ELF binary would be required. It seems like the appropriate sections could be placed in the PE file the same way the DWARF is but I could be missing something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I don't think it is required by DWARF, just seems like a LLVM limitation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On an unrelated note, I think we could probably support
SplitDebuginfo::Unpacked
on*-windows-mscv
via the/DEBUG:FASTLINK
option which sounds pretty much like the equivalent split DWARF behavior. I'll put that on my todo list to look into.