libdwarf: Using dwarf_siblingof_b()

libdwarf

Loading...
Searching...
No Matches
Using dwarf_siblingof_b()

Example accessing a DIE sibling.

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 example4b(Dwarf_Debug dbg,Dwarf_Die in_die,
Dwarf_Bool is_info,
Dwarf_Error *error)
{
Dwarf_Die return_sib = 0;
int res = 0;
/* in_die might be NULL following a call
to dwarf_next_cu_header_d()
or a valid Dwarf_Die
Dwarf_Die
struct Dwarf_Die_s * Dwarf_Die
Definition libdwarf.h:627
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_Bool
int Dwarf_Bool
Definition libdwarf.h:202