libdwarf: Accessing accessing raw rnglist

libdwarf

Loading...
Searching...
No Matches
Accessing accessing raw rnglist

Example showing access to rnglist.

Example showing access to rnglist.

This is accessing DWARF5 .debug_rnglists.

*/
int example_raw_rnglist(Dwarf_Debug dbg,Dwarf_Error *error)
{
Dwarf_Unsigned count = 0;
int res = 0;
Dwarf_Unsigned i = 0;
res = dwarf_load_rnglists(dbg,&count,error);
if (res != DW_DLV_OK) {
return res;
}
for (i =0 ; i < count ; ++i) {
Dwarf_Unsigned header_offset = 0;
Dwarf_Small offset_size = 0;
Dwarf_Small extension_size = 0;
unsigned version = 0; /* 5
Dwarf_Error
struct Dwarf_Error_s * Dwarf_Error
Definition libdwarf.h:611
Dwarf_Debug
struct Dwarf_Debug_s * Dwarf_Debug
Definition libdwarf.h:617
Dwarf_Small
unsigned char Dwarf_Small
Definition libdwarf.h:204
Dwarf_Unsigned
unsigned long long Dwarf_Unsigned
Definition libdwarf.h:196
dwarf_load_rnglists
DW_API int dwarf_load_rnglists(Dwarf_Debug dw_dbg, Dwarf_Unsigned *dw_rnglists_count, Dwarf_Error *dw_error)
Loads all .debug_rnglists headers.