libdwarf
Functions
Generic dwarf_dealloc Function

Functions

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, and in a few cases such is not provided. The functions doing allocations tell you which dealloc to use. More...
 

Detailed Description

Works for most dealloc needed.

For easier to use versions see the following

See also
dwarf_dealloc_attribute
dwarf_dealloc_die
dwarf_dealloc_dnames
dwarf_dealloc_error
dwarf_dealloc_fde_cie_list
dwarf_dealloc_frame_instr_head
dwarf_dealloc_macro_context
dwarf_dealloc_ranges
dwarf_dealloc_rnglists_head
dwarf_dealloc_uncompressed_block
dwarf_globals_dealloc
dwarf_gnu_index_dealloc
dwarf_loc_head_c_dealloc
dwarf_srclines_dealloc_b

Function Documentation

◆ dwarf_dealloc()

void dwarf_dealloc ( Dwarf_Debug  dw_dbg,
void *  dw_space,
Dwarf_Unsigned  dw_type 
)
Parameters
dw_dbgMust be a valid open Dwarf_Debug. and must be the dw_dbg that the error was created on. If it is not the dealloc will do nothing.
dw_spaceMust be an address returned directly by a libdwarf call that the call specifies as requiring dealloc/free. If it is not a segfault or address fault is possible.
dw_typeMust be a correct naming of the DW_DLA type. If it is not the dealloc will do nothing.