36 : m_impl_backend(valobj), m_live_address(live_address),
38 m_address_of_backend() {}
42 return lldb::ValueObjectSP();
48 size_t idx,
bool synthetic_array_member, int32_t synthetic_index) {
56 bool omit_empty_base_classes =
true;
57 bool ignore_array_bounds = synthetic_array_member;
58 std::string child_name_str;
60 int32_t child_byte_offset = 0;
61 uint32_t child_bitfield_bit_size = 0;
62 uint32_t child_bitfield_bit_offset = 0;
63 bool child_is_base_class =
false;
64 bool child_is_deref_of_parent =
false;
65 uint64_t language_flags;
67 const bool transparent_pointers = !synthetic_array_member;
74 &exe_ctx, idx, transparent_pointers, omit_empty_base_classes,
75 ignore_array_bounds, child_name_str, child_byte_size, child_byte_offset,
76 child_bitfield_bit_size, child_bitfield_bit_offset, child_is_base_class,
84 if (child_compiler_type) {
86 child_byte_offset += child_byte_size * synthetic_index;
89 if (!child_name_str.empty())
103 *
m_impl_backend, child_compiler_type, child_name, child_byte_size,
104 child_byte_offset, child_bitfield_bit_size, child_bitfield_bit_offset,
105 child_is_base_class, child_is_deref_of_parent, child_live_addr,
116 return lldb::ValueObjectSP();
119 offset, type, can_create, name_const_str);
127 return lldb::ValueObjectSP();
134 std::string new_name(
"&");
153 return lldb::ValueObjectSP();
158 return result_cast->
GetSP();
169 return m_impl_backend->ValueObject::GetAddressOf(scalar_is_load_address,
184 return m_impl_backend->ValueObject::GetPointeeData(data, item_idx,
static llvm::raw_ostream & error(Stream &strm)
Generic representation of a type in a programming language.
CompilerType GetChildCompilerTypeAtIndex(ExecutionContext *exe_ctx, size_t idx, bool transparent_pointers, bool omit_empty_base_classes, bool ignore_array_bounds, std::string &child_name, uint32_t &child_byte_size, int32_t &child_byte_offset, uint32_t &child_bitfield_bit_size, uint32_t &child_bitfield_bit_offset, bool &child_is_base_class, bool &child_is_deref_of_parent, ValueObject *valobj, uint64_t &language_flags) const
CompilerType GetPointerType() const
Return a new CompilerType that is a pointer to this type.
bool IsPointerType(CompilerType *pointee_type=nullptr) const
A uniqued constant string class.
void SetCString(const char *cstr)
Set the C string value.
const char * AsCString(const char *value_if_empty=nullptr) const
Get the string value as a C string.
A subclass of DataBuffer that stores a data buffer on the heap.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
ExecutionContextScope * GetBestExecutionContextScope() const
uint32_t GetAddressByteSize() const
lldb::ValueObjectSP GetSyntheticChildAtOffset(uint32_t offset, const CompilerType &type, bool can_create, ConstString name_const_str=ConstString())
virtual size_t GetPointeeData(DataExtractor &data, uint32_t item_idx=0, uint32_t item_count=1)
lldb::ValueObjectSP AddressOf(Status &error)
AddressType m_live_address_type
ValueObjectConstResultImpl(ValueObject *valobj, lldb::addr_t live_address=LLDB_INVALID_ADDRESS)
lldb::ValueObjectSP m_address_of_backend
ValueObject * CreateChildAtIndex(size_t idx, bool synthetic_array_member, int32_t synthetic_index)
ValueObject * m_impl_backend
lldb::ValueObjectSP Cast(const CompilerType &compiler_type)
lldb::addr_t m_live_address
virtual lldb::addr_t GetAddressOf(bool scalar_is_load_address=true, AddressType *address_type=nullptr)
lldb::ValueObjectSP Dereference(Status &error)
static lldb::ValueObjectSP Create(ExecutionContextScope *exe_scope, lldb::ByteOrder byte_order, uint32_t addr_byte_size, lldb::addr_t address=LLDB_INVALID_ADDRESS)
CompilerType GetCompilerType()
lldb::ValueObjectSP GetSP()
bool UpdateValueIfNeeded(bool update_format=true)
ConstString GetName() const
const ExecutionContextRef & GetExecutionContextRef() const
@ Scalar
A raw scalar value.
#define LLDB_INVALID_ADDRESS
lldb::ByteOrder InlHostByteOrder()
A class that represents a running process on the host machine.
@ eAddressTypeLoad
Address is an address as in the current target inferior process.