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

Add support for .eh_frame unwinding sections #136

Merged
merged 9 commits into from Oct 5, 2016

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Oct 4, 2016

Not ready to land yet -- going to need to rebase.

Take a look at the code if you want.

Mostly trying to guage whether coverage is going up or down, and see which branches I might have missed unit tests for.

@fitzgen
Copy link
Member Author

fitzgen commented Oct 4, 2016

... and apparently CI won't run until I resolve the conflicts. Will try and do that tomorrow.

@philipc philipc changed the base branch from master to dev October 4, 2016 05:53
@philipc philipc changed the base branch from dev to master October 4, 2016 06:36
@fitzgen
Copy link
Member Author

fitzgen commented Oct 4, 2016

Ok, rebased! Not as bad as I was afraid of.

@fitzgen fitzgen changed the title [DO NOT MERGE] Add support for .eh_frame unwinding sections Add support for .eh_frame unwinding sections Oct 4, 2016
@fitzgen
Copy link
Member Author

fitzgen commented Oct 4, 2016

I think this is ready for review, care to take a look @philipc? Thanks!

@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 93.614% when pulling 4179657 on fitzgen:eh-frame into 799da95 on gimli-rs:master.

Copy link
Collaborator

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

I couldn't review the cfi.rs changes on github, but I did look at them a bit, and looks good to me.

You might be able to avoid _UnwindSectionPrivate leaking into the docs by doing impl UnwindSection for _UnwindSectionPrivate instead of trait UnwindSection: _UnwindSectionPrivate. It'll be a bit more boilerplate that way though, so maybe not worth it.


#[test]
fn test_parse_encoded_pointer_aligned() {
// FIXME!
Copy link
Collaborator

Choose a reason for hiding this comment

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

What needs fixing?

Copy link
Member Author

Choose a reason for hiding this comment

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

Supporting pointers encoded with DW_EH_PE_aligned.

@fitzgen
Copy link
Member Author

fitzgen commented Oct 5, 2016

I'm going to land this now, but this is going to need to undergo a bit more refactoring to deal with .eh_frame in the wild (and ealier DWARF versions). I'm working on it.

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

3 participants