libdwarf
Loading...
Searching...
No Matches
Location/expression access

Example using DWARF2-5 loclists and loc-expressions.

Valid for DWARF2 and later DWARF.

This example simply assumes the attribute has a form which relates to location lists or location expressions. Use dwarf_get_form_class() to determine if this attribute fits. Use dwarf_get_version_of_die() to help get the data you need.

See also
dwarf_get_form_class
dwarf_get_version_of_die
Reading a location expression