libdwarf
Loading...
Searching...
No Matches
Reading an aranges section

Example reading .debug_aranges.

Example reading .debug_aranges.

An example accessing the .debug_aranges section. Looking all the aranges entries. This example is not searching for anything.

Parameters
dbgThe Dwarf_Debug of interest.
dw_errorOn error dw_error is set to point to the error details.
Returns
DW_DLV_OK etc.
*/
static void cleanupbadarange(Dwarf_Debug dbg,
{
Dwarf_Signed k = i;
for ( ; k < count; ++k) {
dwarf_dealloc(dbg,arange[k] , DW_DLA_ARANGE);
arange[k] = 0;
}
}
int exampleu(Dwarf_Debug dbg,Dwarf_Error <em>error)
{
/</em> It is a historical accident that the count is signed.
No negative count is possible.
struct Dwarf_Arange_s * Dwarf_Arange
Definition libdwarf.h:701
struct Dwarf_Error_s * Dwarf_Error
Definition libdwarf.h:611
struct Dwarf_Debug_s * Dwarf_Debug
Definition libdwarf.h:617
signed long long Dwarf_Signed
Definition libdwarf.h:197
DW_API 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,...