-
Notifications
You must be signed in to change notification settings - Fork 106
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
Consider adding a higher level API on top of DIE parsing/traversal #82
Comments
When I writing a program that parse global variable addresses( https://github.com/grissiom/elfvars/ ), I found I have to pass the IMHO, the abbreviations and debug_str associated with a CU does not change in the middle. So a higher level API may group those info into a struct and make the methods easier to use. |
It's not just those two that you need. DIEs can contain references to most other sections too, and so you currently need to pass those sections down too if you want to use those values (the dwarfdump example passes down abbrev/line/loc/ranges/str). Definitely open to ideas for making this easier to use though. |
If we had an |
Maybe we could handover the "parsing" of the ELF to other crates such as object or xmas-elf. But only store the section data references in the For #182 , I think we could let |
Something like this:
Would ideally be able to become owned, if the user wants to copy the data.
The text was updated successfully, but these errors were encountered: