-
Notifications
You must be signed in to change notification settings - Fork 108
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
Add support for DW_LNCT_LLVM_source #728
Conversation
we can't tell from just the header if the file entries will include source code or not
The accepted proposal is https://dwarfstd.org/issues/180201.1.html, but that isn't the definitive version of what ends up in the standard. A further proposal modified this: https://dwarfstd.org/issues/211108.2.html. It would be better to refer to the draft standards (https://snapshots.sourceware.org/dwarfstd/dwarf-spec/) to see the current status, but I'm reluctant to implement that here before it is released (or close to it). So, don't implement |
I'm still calling the attribute |
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 still calling the attribute source at the moment. Should it explicitly be llvm_source instead?
No, leave it as source
, it will be used for both in future.
Co-authored-by: Philip Craig <[email protected]>
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.
Thanks!
Hi, can you cut a new release for crates.io? 🙂 |
Released 0.31.0 |
Hi,
this is a follow-up on #432 (fixes #431).
The discussion in #432 is still relevant here: The accepted proposal explicitly deals with missing source attributes now by specifying that all provided embedded source attributes should be newline-terminated.
I don't think there's a clean way to implement this though. (=> I've added
fn source_attr
andfn source
in this PR)Let me know if you'd be okay with merging support for this feature without waiting for DWARF v6 🙂
(I'd like to use this to simplify tests in
rustc
and wire up support insymbolic
.)