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

Allow access to the parsed dwarf #159

Merged
merged 2 commits into from
May 5, 2020
Merged

Conversation

bjorn3
Copy link
Contributor

@bjorn3 bjorn3 commented Apr 30, 2020

This makes it possible get access to the internal parsed Dwarf and Unit. It also allows access to the UnitOffset corresponding to the DIE of a frame. This is very useful for https://github.com/bjorn3/pretty_backtrace/tree/var_guard.

.unwrap_or(Cow::Borrowed(&[]));
.section_by_name(S::section_name())
.and_then(|section| section.data().ok())
.unwrap_or(&[]);
Copy link
Contributor

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).

src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@bjorn3
Copy link
Contributor Author

bjorn3 commented May 2, 2020

CI failure seems unrelated.

@philipc
Copy link
Contributor

philipc commented May 3, 2020

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?

@bjorn3
Copy link
Contributor Author

bjorn3 commented May 4, 2020

Didn't notice the bench failure. Updated it.

Copy link
Contributor

@philipc philipc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@philipc philipc merged commit 0b16b4f into gimli-rs:master May 5, 2020
@bjorn3 bjorn3 deleted the leak_dwarf branch May 5, 2020 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants