-
Notifications
You must be signed in to change notification settings - Fork 62
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
Allow access to the parsed dwarf #159
Conversation
.unwrap_or(Cow::Borrowed(&[])); | ||
.section_by_name(S::section_name()) | ||
.and_then(|section| section.data().ok()) | ||
.unwrap_or(&[]); |
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 going to have to rethink the object
API here. For compressed sections, we should support either decompressing or returning an error (based on whether the compression feature is enabled).
CI failure seems unrelated. |
The coverage failure is unrelated, but the bench failure is due to the object update. When you fix that, can you squash it into the relevant commit? |
Didn't notice the bench failure. Updated it. |
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!
This makes it possible get access to the internal parsed
Dwarf
andUnit
. It also allows access to theUnitOffset
corresponding to the DIE of a frame. This is very useful for https://github.com/bjorn3/pretty_backtrace/tree/var_guard.