-
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 read::Dwarf #352
Add read::Dwarf #352
Conversation
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.
This is really nice! Feels much higher level now!
Could there be a new release soon? The latest on crates.io doesn't have the writer support yet. |
My plan was to get DWARF 5 done for the .debug_line read/write, but I've gotten sidetracked doing other DWARF 5 stuff that will make it easier to do that, and I've also been a bit lacking in time recently. I also want to add something that makes it easier to write DWARF for a single compilation unit. There will be more breaking changes for this, so I wasn't going to do a release just yet, but yes hopefully soon. |
I have rebased your rustc_codegen_cranelift debuginfo branch and I am working on extending it a bit.
Notice the args. It is really annoying when gdb silently ignores stuff (eg |
The motivation is to reduce the long parameter lists containing section readers, which is only going to get worse as we implement the new DWARF 5 sections.
Currently I'm only including the sections used when parsing
.debug_info
, which is the section that contains the most references to other sections. There will only be one of these structs per file, so it's probably not a problem to add other sections too if needed.