LIEF: Library to Instrument Executable Formats Version 0.17.0
|
This class provides a generic interface for accessing debug information from different formats such as DWARF and PDB. More...
#include <DebugInfo.hpp>
Public Types | |
enum class | FORMAT { UNKNOWN = 0 , DWARF , PDB } |
Public Member Functions | |
DebugInfo (std::unique_ptr< details::DebugInfo > impl) | |
virtual | ~DebugInfo () |
virtual FORMAT | format () const |
template<class T> | |
const T * | as () const |
This function can be used to down cast a DebugInfo instance: | |
virtual optional< uint64_t > | find_function_address (const std::string &name) const =0 |
Attempt to resolve the address of the function specified by name. |
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.
|
strong |
LIEF::DebugInfo::DebugInfo | ( | std::unique_ptr< details::DebugInfo > | impl | ) |
|
virtual |
Reimplemented in LIEF::dwarf::DebugInfo, and LIEF::pdb::DebugInfo.
|
inline |
|
pure virtual |
Attempt to resolve the address of the function specified by name.
Implemented in LIEF::dwarf::DebugInfo, and LIEF::pdb::DebugInfo.
|
inlinevirtual |
Reimplemented in LIEF::dwarf::DebugInfo, and LIEF::pdb::DebugInfo.
References UNKNOWN.