Go to the documentation of this file.
9 #ifndef LLDB_CORE_VALUE_H
10 #define LLDB_CORE_VALUE_H
20 #include "llvm/ADT/APInt.h"
29 class ExecutionContext;
70 Value(
const void *bytes,
int len);
73 void SetBytes(
const void *bytes,
int len);
180 #endif // LLDB_CORE_VALUE_H
lldb::Format GetValueDefaultFormat()
@ Scalar
A raw scalar value.
AddressType GetValueAddressType() const
DataBufferHeap & GetBuffer()
Format
Display format definitions.
void SetValueType(ValueType value_type)
@ LLDBType
lldb_private::Type *.
Status GetValueAsData(ExecutionContext *exe_ctx, DataExtractor &data, Module *module)
@ FileAddress
A file address value.
ValueType GetValueType() const
Value * GetValueAtIndex(size_t idx)
CompilerType m_compiler_type
ValueList & operator=(const ValueList &rhs)=default
bool ValueOf(ExecutionContext *exe_ctx)
@ LoadAddress
A load address value.
static const char * GetValueTypeAsCString(ValueType context_type)
Value & operator=(const Value &rhs)
RegisterInfo * GetRegisterInfo() const
void SetCompilerType(const CompilerType &compiler_type)
const Scalar & GetScalar() const
void PushValue(const Value &value)
void ConvertToLoadAddress(Module *module, Target *target)
Convert this value's file address to a load address, if possible.
void AppendBytes(const void *bytes, int len)
ValueType
Type that describes Value::m_value.
DataBufferHeap m_data_buffer
static const char * GetContextTypeAsCString(ContextType context_type)
Scalar & ResolveValue(ExecutionContext *exe_ctx)
ContextType m_context_type
@ eEncodingVector
vector registers
@ HostAddress
A host address value (for memory in the process that < A is using liblldb).
bool GetData(DataExtractor &data)
ContextType GetContextType() const
Generic representation of a type in a programming language.
const CompilerType & GetCompilerType()
@ RegisterInfo
RegisterInfo * (can be a scalar or a vector register).
std::vector< Value > collection
void SetBytes(const void *bytes, int len)
A class that represents a running process on the host machine.
void SetContext(ContextType context_type, void *p)
size_t ResizeData(size_t len)
ContextType
Type that describes Value::m_context.
uint64_t GetValueByteSize(Status *error_ptr, ExecutionContext *exe_ctx)
const DataBufferHeap & GetBuffer() const
size_t AppendDataToHostBuffer(const Value &rhs)