Example accessing a DIE sibling.
Access to each DIE on a sibling list This is the older form, required after dwarf_next_cu_header_d().
Better to use dwarf_next_cu_header_e() and dwarf_siblingof_c().
*/
{
int res = 0;
if (res == DW_DLV_OK) {
return_sib = 0;
return res;
}
return res;
}
struct Dwarf_Debug_s * Dwarf_Debug
Definition libdwarf.h:603
struct Dwarf_Die_s * Dwarf_Die
Definition libdwarf.h:608
struct Dwarf_Error_s * Dwarf_Error
Definition libdwarf.h:597
int Dwarf_Bool
Definition libdwarf.h:202
void dwarf_dealloc_die(Dwarf_Die dw_die)
Deallocate (free) a DIE.
int dwarf_siblingof_b(Dwarf_Debug dw_dbg, Dwarf_Die dw_die, Dwarf_Bool dw_is_info, Dwarf_Die *dw_return_siblingdie, Dwarf_Error *dw_error)
Return the first DIE or the next sibling DIE.