libdwarf: Generic dwarf_dealloc Function

libdwarf

Loading...
Searching...
No Matches
Functions
Generic dwarf_dealloc Function

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

## 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()

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

Parameters

  dw_dbg | Must 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_space | Must 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_type | Must be a correct naming of the DW_DLA type. If it is not the dealloc will do nothing.