38 : m_impl_backend(valobj), m_live_address(live_address),
40 m_address_of_backend() {}
55 bool omit_empty_base_classes =
true;
56 bool ignore_array_bounds =
false;
57 std::string child_name;
58 uint32_t child_byte_size = 0;
59 int32_t child_byte_offset = 0;
60 uint32_t child_bitfield_bit_size = 0;
61 uint32_t child_bitfield_bit_offset = 0;
62 bool child_is_base_class =
false;
63 bool child_is_deref_of_parent =
false;
64 uint64_t language_flags;
65 const bool transparent_pointers =
true;
71 &exe_ctx, idx, transparent_pointers, omit_empty_base_classes,
72 ignore_array_bounds, child_name, child_byte_size, child_byte_offset,
73 child_bitfield_bit_size, child_bitfield_bit_offset, child_is_base_class,
81 if (!child_compiler_type_or_err || !child_compiler_type_or_err->IsValid()) {
83 child_compiler_type_or_err.takeError(),
84 "could not find child: {0}");
99 child_byte_size, child_byte_offset, child_bitfield_bit_size,
100 child_bitfield_bit_offset, child_is_base_class, child_is_deref_of_parent,
101 child_live_addr, language_flags);
111 bool omit_empty_base_classes =
true;
112 bool ignore_array_bounds =
true;
113 std::string child_name;
114 uint32_t child_byte_size = 0;
115 int32_t child_byte_offset = 0;
116 uint32_t child_bitfield_bit_size = 0;
117 uint32_t child_bitfield_bit_offset = 0;
118 bool child_is_base_class =
false;
119 bool child_is_deref_of_parent =
false;
120 uint64_t language_flags;
122 const bool transparent_pointers =
false;
128 &exe_ctx, 0, transparent_pointers, omit_empty_base_classes,
129 ignore_array_bounds, child_name, child_byte_size, child_byte_offset,
130 child_bitfield_bit_size, child_bitfield_bit_offset, child_is_base_class,
137 if (!child_compiler_type_or_err || !child_compiler_type_or_err->IsValid()) {
139 child_compiler_type_or_err.takeError(),
140 "could not find child: {0}");
144 child_byte_offset += child_byte_size * idx;
156 child_byte_size, child_byte_offset, child_bitfield_bit_size,
157 child_bitfield_bit_offset, child_is_base_class, child_is_deref_of_parent,
158 child_live_addr, language_flags);
162 uint32_t offset,
const CompilerType &type,
bool can_create,
168 offset, type, can_create, name_const_str);
183 std::string new_name(
"&");
207 return result_cast->
GetSP();
218 return m_impl_backend->ValueObject::GetAddressOf(scalar_is_load_address,
230 uint32_t item_count) {
233 return m_impl_backend->ValueObject::GetPointeeData(data, item_idx,
static llvm::raw_ostream & error(Stream &strm)
#define LLDB_LOG_ERROR(log, error,...)
Generic representation of a type in a programming language.
CompilerType GetPointerType() const
Return a new CompilerType that is a pointer to this type.
llvm::Expected< 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
bool IsPointerType(CompilerType *pointee_type=nullptr) const
A uniqued constant string class.
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)
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)
ValueObject * CreateSyntheticArrayMember(size_t idx)
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.
Log * GetLog(Cat mask)
Retrieve the Log object for the channel associated with the given log enum.
@ eAddressTypeLoad
Address is an address as in the current target inferior process.
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP
std::shared_ptr< lldb_private::DataBuffer > DataBufferSP