libdwarf: Accessing rnglists section

libdwarf

Loading...
Searching...
No Matches
Accessing rnglists section

Example showing access to rnglists on an Attribute.

Example showing access to rnglists on an Attribute.

This is accessing DWARF5 .debug_rnglists. The section first appears in DWARF5.

*/
int example_rnglist_for_attribute(Dwarf_Attribute attr,
Dwarf_Unsigned attrvalue,Dwarf_Error <em>error)
{
/</em> attrvalue must be the DW_AT_ranges
DW_FORM_rnglistx or DW_FORM_sec_offset value
extracted from attr.
Dwarf_Attribute
struct Dwarf_Attribute_s * Dwarf_Attribute
Definition libdwarf.h:677
Dwarf_Error
struct Dwarf_Error_s * Dwarf_Error
Definition libdwarf.h:611
Dwarf_Unsigned
unsigned long long Dwarf_Unsigned
Definition libdwarf.h:196