LIEF: Library to Instrument Executable Formats Version 2.0.0
Loading...
Searching...
No Matches
LIEF::dwarf::ExpressionLoc Class Reference

A DWARF expression that is not evaluated by LIEF: implicit values, computed addresses, entry values, ... More...

#include <Location.hpp>

Inheritance diagram for LIEF::dwarf::ExpressionLoc:
Collaboration diagram for LIEF::dwarf::ExpressionLoc:

Public Member Functions

 ExpressionLoc (std::vector< uint8_t > bytes, std::string text)
 ~ExpressionLoc () override
Public Member Functions inherited from LIEF::dwarf::Location
 Location (Type ty)
 Location (const Location &)=default
Location & operator= (const Location &)=default
 Location (Location &&) noexcept=default
Location & operator= (Location &&) noexcept=default
virtual ~Location ()
template<class T>
const T * as () const
std::string to_string () const
 Human-readable description of this location.

Static Public Member Functions

static bool classof (const Location *loc)

Public Attributes

std::vector< uint8_t > expression
 Raw bytes of the DWARF expression.
std::string description
 Textual representation of the expression (e.g. DW_OP_lit0, DW_OP_stack_value).
Public Attributes inherited from LIEF::dwarf::Location
Type type = Type::UNKNOWN

Additional Inherited Members

Public Types inherited from LIEF::dwarf::Location
enum class  Type : uint8_t {
  UNKNOWN = 0 , REG , ADDRESS , FRAME_BASE ,
  REGISTER_OFFSET , EXPRESSION , UNAVAILABLE , COMPOSITE
}

Detailed Description

A DWARF expression that is not evaluated by LIEF: implicit values, computed addresses, entry values, ...

Constructor & Destructor Documentation

◆ ExpressionLoc()

LIEF::dwarf::ExpressionLoc::ExpressionLoc ( std::vector< uint8_t > bytes,
std::string text )
inline

◆ ~ExpressionLoc()

LIEF::dwarf::ExpressionLoc::~ExpressionLoc ( )
override

Member Function Documentation

◆ classof()

bool LIEF::dwarf::ExpressionLoc::classof ( const Location * loc)
inlinestatic

Member Data Documentation

◆ description

std::string LIEF::dwarf::ExpressionLoc::description

Textual representation of the expression (e.g. DW_OP_lit0, DW_OP_stack_value).

Referenced by ExpressionLoc().

◆ expression

std::vector<uint8_t> LIEF::dwarf::ExpressionLoc::expression

Raw bytes of the DWARF expression.

Referenced by ExpressionLoc().


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