libdwarf: Reading gdbindex addressarea

libdwarf

Loading...
Searching...
No Matches
Reading gdbindex addressarea

Example accessing gdbindex addressarea data.

Example accessing gdbindex addressarea data.

*/
int examplewgdbindex(Dwarf_Gdbindex gdbindex,
Dwarf_Error *error)
{
Dwarf_Unsigned list_len = 0;
Dwarf_Unsigned i = 0;
int res = 0;
res = dwarf_gdbindex_addressarea(gdbindex, &list_len,error);
if (res != DW_DLV_OK) {
/* Something wrong, ignore the addressarea
Dwarf_Error
struct Dwarf_Error_s * Dwarf_Error
Definition libdwarf.h:611
Dwarf_Gdbindex
struct Dwarf_Gdbindex_s * Dwarf_Gdbindex
Definition libdwarf.h:706
Dwarf_Unsigned
unsigned long long Dwarf_Unsigned
Definition libdwarf.h:196
dwarf_gdbindex_addressarea
DW_API int dwarf_gdbindex_addressarea(Dwarf_Gdbindex dw_gdbindexptr, Dwarf_Unsigned *dw_addressarea_list_length, Dwarf_Error *dw_error)
Get access to gdbindex address area.