Example reading .debug_macinfo, DWARF2-4.
*/
(void)s;
}
{
int errv = 0;
&count,&maclist,error);
if (errv == DW_DLV_OK) {
for (i = 0; i < count; ++i) {
functionusingsigned(lineno);
}
}
cur_off = 0;
&count,&maclist,error))== DW_DLV_OK) {
for (i = 0; i < count; ++i) {
functionusingsigned(lineno);
}
cur_off = maclist[count-1].dmd_offset + 1;
}
return DW_DLV_OK;
}
struct Dwarf_Debug_s * Dwarf_Debug
Definition: libdwarf.h:603
struct Dwarf_Error_s * Dwarf_Error
Definition: libdwarf.h:597
signed long long Dwarf_Signed
Definition: libdwarf.h:197
unsigned long long Dwarf_Unsigned
Definition: libdwarf.h:196
unsigned long long Dwarf_Off
Definition: libdwarf.h:198
void dwarf_dealloc(Dwarf_Debug dw_dbg, void *dw_space, Dwarf_Unsigned dw_type)
The generic dealloc (free) function. It requires you know the correct DW_DLA value to pass in,...
int dwarf_get_macro_details(Dwarf_Debug dw_dbg, Dwarf_Off dw_macro_offset, Dwarf_Unsigned dw_maximum_count, Dwarf_Signed *dw_entry_count, Dwarf_Macro_Details **dw_details, Dwarf_Error *dw_error)
Getting .debug_macinfo macro details.
Definition: libdwarf.h:728