Example using dwarf_get_xu_index_header.
Debug Fission is an older name for Split Dwarf.
*/
{
int res = 0;
const char *section_name = 0;
type,
&xuhdr,
&version_number,
&offsets_count,
&units_count,
&hash_slots_count,
§ion_name,
error);
if (res != DW_DLV_OK) {
return res;
}
return DW_DLV_OK;
}
struct Dwarf_Xu_Index_Header_s * Dwarf_Xu_Index_Header
Definition libdwarf.h:693
struct Dwarf_Debug_s * Dwarf_Debug
Definition libdwarf.h:603
struct Dwarf_Error_s * Dwarf_Error
Definition libdwarf.h:597
unsigned long long Dwarf_Unsigned
Definition libdwarf.h:196
void dwarf_dealloc_xu_header(Dwarf_Xu_Index_Header dw_xuhdr)
Dealloc (free) memory associated with dw_xuhdr.
int dwarf_get_xu_index_header(Dwarf_Debug dw_dbg, const char *dw_section_type, Dwarf_Xu_Index_Header *dw_xuhdr, Dwarf_Unsigned *dw_version_number, Dwarf_Unsigned *dw_section_count, Dwarf_Unsigned *dw_units_count, Dwarf_Unsigned *dw_hash_slots_count, const char **dw_sect_name, Dwarf_Error *dw_error)
Access a .debug_cu_index or dw_tu_index section.