PDB and DWARF shares similar traits which are abstracted by the following classes:
This class provides a generic interface for accessing debug information from different formats such as DWARF and PDB.
Users can use this interface to access high-level debug features like resolving function addresses.
See: LIEF::pdb::DebugInfo, LIEF::dwarf::DebugInfo
Subclassed by LIEF::dwarf::DebugInfo, LIEF::pdb::DebugInfo
Public Functions
This function can be used to down cast a DebugInfo instance:
std::unique_ptr<LIEF::Instruction> dbg = bin->debug_info();
if (const auto* dwarf = inst->as<LIEF::dwarf::DebugInfo>()) {
dwarf->find_function("main");
}
Attempt to resolve the address of the function specified by name
.
Friends
This structure holds a debug location (source filename & line).
Bases: object
This class provides a generic interface for accessing debug information from different formats such as DWARF and PDB.
Users can use this interface to access high-level debug features like resolving function addresses.
See: DebugInfo
, lief.dwarf.DebugInfo
Bases: Enum
Attempt to resolve the address of the function specified by name
.
The actual debug format (PDB/DWARF)