38 : m_impl_backend(valobj), m_live_address(live_address),
54 bool omit_empty_base_classes =
true;
55 bool ignore_array_bounds =
false;
56 std::string child_name;
57 uint32_t child_byte_size = 0;
58 int32_t child_byte_offset = 0;
59 uint32_t child_bitfield_bit_size = 0;
60 uint32_t child_bitfield_bit_offset = 0;
61 bool child_is_base_class =
false;
62 bool child_is_deref_of_parent =
false;
63 uint64_t language_flags;
64 const bool transparent_pointers =
true;
70 &exe_ctx, idx, transparent_pointers, omit_empty_base_classes,
71 ignore_array_bounds, child_name, child_byte_size, child_byte_offset,
72 child_bitfield_bit_size, child_bitfield_bit_offset, child_is_base_class,
80 if (!child_compiler_type_or_err || !child_compiler_type_or_err->IsValid()) {
82 child_compiler_type_or_err.takeError(),
83 "could not find child: {0}");
98 child_byte_size, child_byte_offset, child_bitfield_bit_size,
99 child_bitfield_bit_offset, child_is_base_class, child_is_deref_of_parent,
100 child_live_addr, language_flags);
110 bool omit_empty_base_classes =
true;
111 bool ignore_array_bounds =
true;
112 std::string child_name;
113 uint32_t child_byte_size = 0;
114 int32_t child_byte_offset = 0;
115 uint32_t child_bitfield_bit_size = 0;
116 uint32_t child_bitfield_bit_offset = 0;
117 bool child_is_base_class =
false;
118 bool child_is_deref_of_parent =
false;
119 uint64_t language_flags;
121 const bool transparent_pointers =
false;
127 &exe_ctx, 0, transparent_pointers, omit_empty_base_classes,
128 ignore_array_bounds, child_name, child_byte_size, child_byte_offset,
129 child_bitfield_bit_size, child_bitfield_bit_offset, child_is_base_class,
136 if (!child_compiler_type_or_err || !child_compiler_type_or_err->IsValid()) {
138 child_compiler_type_or_err.takeError(),
139 "could not find child: {0}");
143 child_byte_offset += child_byte_size * idx;
155 child_byte_size, child_byte_offset, child_bitfield_bit_size,
156 child_bitfield_bit_offset, child_is_base_class, child_is_deref_of_parent,
157 child_live_addr, language_flags);
161 uint32_t offset,
const CompilerType &type,
bool can_create,
167 offset, type, can_create, name_const_str);
182 std::string new_name(
"&");
206 return result_cast->
GetSP();
217 return m_impl_backend->ValueObject::GetAddressOf(scalar_is_load_address,
229 uint32_t item_count) {
232 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