LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
LIEF::DebugInfo Class Reference

#include <DebugInfo.hpp>

Inheritance diagram for LIEF::DebugInfo:

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:

Member Enumeration Documentation

◆ FORMAT

enum class LIEF::DebugInfo::FORMAT
strong
Enumerator
UNKNOWN 
DWARF 
PDB 

Constructor & Destructor Documentation

◆ DebugInfo()

LIEF::DebugInfo::DebugInfo ( std::unique_ptr< details::DebugInfo > impl)

◆ ~DebugInfo()

virtual LIEF::DebugInfo::~DebugInfo ( )
virtual

Member Function Documentation

◆ as()

template<class T>
const T * LIEF::DebugInfo::as ( ) const
inline

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");
}
This class represents a DWARF debug information. It can embed different compilation units which can b...
Definition DWARF/DebugInfo.hpp:36
Namespace for the DWARF debug format.
Definition DWARF/CompilationUnit.hpp:28

◆ format()

virtual FORMAT LIEF::DebugInfo::format ( ) const
inlinevirtual

Reimplemented in LIEF::dwarf::DebugInfo, and LIEF::pdb::DebugInfo.

References UNKNOWN.


The documentation for this class was generated from the following file: