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

Delete phantom Section members #399

Merged
merged 1 commit into from
Mar 6, 2019
Merged

Conversation

philipc
Copy link
Collaborator

@philipc philipc commented Mar 5, 2019

These complicate the API without providing significant benefit. Deleting these allows consumers to reuse more code between .eh_frame and .debug_frame.

The main benefit I could see for these was in the tests, where it ensured that the section type we wrote in the test builder was the same as the section type we tried to read back. We can retain this check by adding a SectionKind parameter in the tests, and we can extend this check to handle endianity as well.

Partial fix for #296

@philipc philipc requested a review from fitzgen March 5, 2019 01:37
@coveralls
Copy link

coveralls commented Mar 5, 2019

Coverage Status

Coverage increased (+0.04%) to 86.615% when pulling 87375ca on philipc:issue-296 into a5f5b72 on gimli-rs:master.

These complicate the API without providing significant benefit.
Deleting these allows consumers to reuse more code between
.eh_frame and .debug_frame.

The main benefit I could see for these was in the tests, where it
ensured that the section type we wrote in the test builder was the
same as the section type we tried to read back. We can retain this
check by adding a `SectionKind` parameter in the tests, and we can
extend this check to handle endianity as well.
@philipc philipc merged commit b8d7ee7 into gimli-rs:master Mar 6, 2019
@philipc philipc deleted the issue-296 branch March 6, 2019 03:34
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