The Ddpi_Access object contains and controls the items necessary to load and use ELF and DWARF objects.
Ddpi_Error
object
indicates the error occurred during a call to a libdwarf
operation,
a program analysis application can extract further information by querying
the Dwarf_Error
object, which is stored in the Ddpi_Access
object. Ddpi_Access
object contains:libdwarf
consumer object (Dwarf_Debug
).
Each libddpi
instance has a single Dwarf_Debug
object,
which can work with one or more Ddpi_Elf
objects.Dwarf_Error
object, which is used for all calls to libdwarf
operations.
For example, if DDPI_DLE_DWARF_ERROR (error code 138) is returned, the Dwarf_Erro
r
object can be queried to determine the cause and type of the error. Ddpi_Elf
objects. It is recommended that a Ddpi_Elf
object
exist for each compilation unit (CU), debug-information file (debugging unit),
or section of a unit. Each Ddpi_Elf
object contains the handle
to the ELF object file.Dwarf_Error
object, you can use either
of the following operations:
Both of these operations return the same Dwarf_Error object.