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

Support DWARFv5 source code embedding extension #835

Closed
Mrmaxmeier opened this issue Apr 27, 2024 · 1 comment · Fixed by #849
Closed

Support DWARFv5 source code embedding extension #835

Mrmaxmeier opened this issue Apr 27, 2024 · 1 comment · Fixed by #849

Comments

@Mrmaxmeier
Copy link
Contributor

DWARFv5 has an extension for embedding program source code directly into the debug info sections: https://dwarfstd.org/issues/180201.1.html

symbolic is not currently aware of this, and can't provide source code for ELF files:

pub fn has_sources(&self) -> bool {
false

It'd be nice to have this as a convenient alternative to source bundles. Clang supports it through a -gembed-source flag but other toolchains (Rust) don't have similar flags yet as far as I can tell.

For more information, here's the LLVM implementation of the DWARF bits: https://reviews.llvm.org/D42765

I'll probably take a stab at implementing this but wanted to open an issue first 🙂

@loewenheim
Copy link
Contributor

Indeed, that sounds like a useful feature. A PR would be welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants