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