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

Support libdwarf >= 20210528 #232

Open
jgcodes2020 opened this issue Jul 29, 2021 · 1 comment
Open

Support libdwarf >= 20210528 #232

jgcodes2020 opened this issue Jul 29, 2021 · 1 comment

Comments

@jgcodes2020
Copy link

My library links in a relatively recent version of libdwarf, commit c70361. This version removed old methods (like dwarf_get_ranges_a, dwarf_siblingof) in favour of the latest versions of the function (i.e. dwarf_get_ranges_b, dwarf_siblingof_b). In addition, it deprecated pulling in libelf, you should instead use dwarf_init_path.

Gist with my compiler's error logs

@okeuday
Copy link
Contributor

okeuday commented Jan 16, 2023

To avoid compatibility problems, it should be best to focus on the 0.x.y releases of libdwarf which utilize the libdwarf-0 include directory instead of the libdwarf include directory (#237). With all the API functions changing a separate macro like BACKWARD_HAS_DWARF0 could be used to allow the older API to remain while the newer API receives more testing.

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

No branches or pull requests

2 participants