LIEF: Library to Instrument Executable Formats Version 0.17.0
|
This class represents an editable DWARF variable which can be scoped by a function or a compilation unit (DW_TAG_variable
)
More...
#include <Variable.hpp>
Public Member Functions | |
Variable ()=delete | |
Variable (std::unique_ptr< details::Variable > impl) | |
Variable & | set_addr (uint64_t address) |
Set the global address of this variable. Setting this address is only revelant in the case of a static global variable. For stack variable, you should use set_stack_offset. | |
Variable & | set_stack_offset (uint64_t offset) |
Set the stack offset of this variable. | |
Variable & | set_external () |
Mark this variable as imported | |
Variable & | set_type (const Type &type) |
Set the type of the current variable. | |
~Variable () | |
This class represents an editable DWARF variable which can be scoped by a function or a compilation unit (DW_TAG_variable
)
|
delete |
LIEF::dwarf::editor::Variable::Variable | ( | std::unique_ptr< details::Variable > | impl | ) |
LIEF::dwarf::editor::Variable::~Variable | ( | ) |
Variable & LIEF::dwarf::editor::Variable::set_addr | ( | uint64_t | address | ) |
Set the global address of this variable. Setting this address is only revelant in the case of a static global variable. For stack variable, you should use set_stack_offset.
This function set the DW_AT_location
attribute
Variable & LIEF::dwarf::editor::Variable::set_external | ( | ) |
Mark this variable as imported
Variable & LIEF::dwarf::editor::Variable::set_stack_offset | ( | uint64_t | offset | ) |
Set the stack offset of this variable.
This function set the DW_AT_location
attribute
Set the type of the current variable.