Difference between dwarf_getscopes and dwarf_getscopes_die

Josh Stone jistone@redhat.com
Mon Jun 15 16:50:25 GMT 2020

On 6/13/20 10:34 AM, Milian Wolff wrote:
> Hey all,
> can someone explain me the difference between dwarf_getscopes and 
> dwarf_getscopes_die? Ideally, this should then be added to the documentation 
> too.

dwarf_getscopes_die just follows the DWARF structure of direct DIE
parents, whereas dwarf_getscopes is kind of a semantic view, most
notably following DW_TAG_inlined_subroutine+DW_AT_abstract_origin to a
different part of the DIE tree.

More information about the Elfutils-devel mailing list