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

The value is associated to a register (e.g. DW_OP_reg5). More...

#include <Location.hpp>

Inheritance diagram for LIEF::dwarf::RegisterLoc:
Collaboration diagram for LIEF::dwarf::RegisterLoc:

Public Member Functions

 RegisterLoc (uint64_t reg_id)
 ~RegisterLoc () 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

uint64_t id = 0
 DWARF id of the register that must be interpreted according to the target architecture.
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

The value is associated to a register (e.g. DW_OP_reg5).

Constructor & Destructor Documentation

◆ RegisterLoc()

LIEF::dwarf::RegisterLoc::RegisterLoc ( uint64_t reg_id)
inlineexplicit

◆ ~RegisterLoc()

LIEF::dwarf::RegisterLoc::~RegisterLoc ( )
override

Member Function Documentation

◆ classof()

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

Member Data Documentation

◆ id

uint64_t LIEF::dwarf::RegisterLoc::id = 0

DWARF id of the register that must be interpreted according to the target architecture.

Referenced by RegisterLoc().


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