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: Attempt to resolve the address of the function specified by Friends This structure holds a debug location (source filename & line). C++¶
DebugInfo¶
inline const T *as() const¶std::unique_ptr<LIEF::Instruction> dbg = bin->debug_info();
if (const auto* dwarf = inst->as<LIEF::dwarf::DebugInfo>()) {
dwarf->find_function("main");
}
name.debug_location_t¶
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)