Go to the documentation of this file.
9 #ifndef LLDB_UTILITY_REGISTERVALUE_H
10 #define LLDB_UTILITY_REGISTERVALUE_H
17 #include "llvm/ADT/APInt.h"
18 #include "llvm/ADT/StringRef.h"
63 m_scalar = llvm::APInt(std::move(inst));
109 bool *success_ptr =
nullptr)
const {
121 bool *success_ptr =
nullptr)
const;
124 bool *success_ptr =
nullptr)
const;
127 bool *success_ptr =
nullptr)
const;
130 bool *success_ptr =
nullptr)
const;
132 float GetAsFloat(
float fail_value = 0.0f,
bool *success_ptr =
nullptr)
const;
135 bool *success_ptr =
nullptr)
const;
138 bool *success_ptr =
nullptr)
const;
172 m_scalar = llvm::APInt(std::move(uint));
237 llvm::StringRef value_str);
239 const char *value_str) =
delete;
273 #endif // LLDB_UTILITY_REGISTERVALUE_H
struct lldb_private::RegisterValue::@40 buffer
void operator=(uint64_t uint)
uint32_t GetByteSize() const
unsigned char UChar(unsigned char fail_value=0) const
bool operator==(const RegisterValue &rhs) const
RegisterValue(llvm::APInt inst)
RegisterValue(uint32_t inst)
llvm::APInt GetAsUInt128(const llvm::APInt &fail_value, bool *success_ptr=nullptr) const
void SetUInt128(llvm::APInt uint)
Status SetValueFromData(const RegisterInfo ®_info, DataExtractor &data, lldb::offset_t offset, bool partial_data_ok)
uint32_t GetAsMemoryData(const RegisterInfo ®_info, void *dst, uint32_t dst_len, lldb::ByteOrder dst_byte_order, Status &error) const
void SetBytes(const void *bytes, size_t length, lldb::ByteOrder byte_order)
uint64_t GetAsUInt64(uint64_t fail_value=UINT64_MAX, bool *success_ptr=nullptr) const
RegisterValue(uint16_t inst)
bool CopyValue(const RegisterValue &rhs)
static llvm::raw_ostream & error(Stream &strm)
void SetUInt64(uint64_t uint, Type t=eTypeUInt64)
void operator=(long double f)
const void * GetBytes() const
uint16_t GetAsUInt16(uint16_t fail_value=UINT16_MAX, bool *success_ptr=nullptr) const
bool GetData(DataExtractor &data) const
long double GetAsLongDouble(long double fail_value=0.0, bool *success_ptr=nullptr) const
uint8_t GetAsUInt8(uint8_t fail_value=UINT8_MAX, bool *success_ptr=nullptr) const
void SetType(RegisterValue::Type type)
RegisterValue(double value)
static uint32_t bit(const uint32_t val, const uint32_t msbit)
void operator=(uint32_t uint)
RegisterValue(long double value)
void SetUInt16(uint16_t uint)
double GetAsDouble(double fail_value=0.0, bool *success_ptr=nullptr) const
bool operator!=(const RegisterValue &rhs) const
void SetUInt32(uint32_t uint, Type t=eTypeUInt32)
lldb::ByteOrder byte_order
RegisterValue::Type GetType() const
bool SetBit(uint32_t bit)
bool SetUInt(uint64_t uint, uint32_t byte_size)
void operator=(uint8_t uint)
uint8_t bytes[kMaxRegisterByteSize]
uint32_t SetFromMemoryData(const RegisterInfo ®_info, const void *src, uint32_t src_len, lldb::ByteOrder src_byte_order, Status &error)
lldb::ByteOrder InlHostByteOrder()
RegisterValue::Type m_type
void operator=(llvm::APInt uint)
RegisterValue(uint8_t inst)
float GetAsFloat(float fail_value=0.0f, bool *success_ptr=nullptr) const
RegisterValue(float value)
RegisterValue(uint64_t inst)
A class that represents a running process on the host machine.
RegisterValue(llvm::ArrayRef< uint8_t > bytes, lldb::ByteOrder byte_order)
bool ClearBit(uint32_t bit)
void SetLongDouble(long double f)
bool SignExtend(uint32_t sign_bitpos)
static uint32_t GetMaxByteSize()
lldb::ByteOrder GetByteOrder() const
uint32_t GetAsUInt32(uint32_t fail_value=UINT32_MAX, bool *success_ptr=nullptr) const
Status SetValueFromString(const RegisterInfo *reg_info, llvm::StringRef value_str)
void SetUInt8(uint8_t uint)
bool GetScalarValue(Scalar &scalar) const
void operator=(uint16_t uint)
ByteOrder
Byte ordering definitions.