Skip to content

Stripped file and gnu_debuglink support take 2 #596

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

Merged
merged 4 commits into from
Feb 15, 2025

Conversation

sevaa
Copy link
Contributor

@sevaa sevaa commented Feb 12, 2025

Closes #594, amends PR #525.

#525 treats external DWARF as a special case of supplementary DWARF, which I think is conceptually wrong. This one will provide both an interface for consumers who would prefer to resolve links by hand, and a seamless DWARF retrieval via ELFFile.load_from_file().

Additionally, this PR validates the checksum on the linked DWARF.

Linking by build ID, as outlined at https://sourceware.org/gdb/current/onlinedocs/gdb.html/Separate-Debug-Files.html , is not supported.

Copy link
Owner

@eliben eliben left a comment

Choose a reason for hiding this comment

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

Thanks!

@sevaa
Copy link
Contributor Author

sevaa commented Feb 14, 2025

Addressed the first thing.

@sevaa
Copy link
Contributor Author

sevaa commented Feb 14, 2025

Removed the FIXME

@sevaa
Copy link
Contributor Author

sevaa commented Feb 15, 2025

Addressed.

@eliben eliben merged commit cae8043 into eliben:main Feb 15, 2025
4 checks passed
@sevaa
Copy link
Contributor Author

sevaa commented Feb 15, 2025

@io-no: sorry, I broke your API. If you update to the latest master and/or the next release, linked DWARF retrieval is different, and the DWARFInfo constructor no longer has the argument for .gnu_debuglink anymore.

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.

Supplemental DWARF vs DWARF elsewhere
2 participants