65 ValueObjectSP size_sp(m_backend.GetChildMemberWithName(
"__size_"));
67 m_num_elements = size_sp->GetValueAsUnsigned(0);
68 return m_num_elements;
76 uint64_t offset = idx * m_element_size;
77 offset = offset + m_start->GetValueAsUnsigned(0);
79 name.
Printf(
"[%" PRIu64
"]", (uint64_t)idx);
80 return CreateValueObjectFromAddress(name.
GetString(), offset,
81 m_backend.GetExecutionContextRef(),
89 m_element_type = m_backend.GetCompilerType().GetTypeTemplateArgument(0);
90 if (!m_element_type.IsValid())
93 if (std::optional<uint64_t> size = m_element_type.GetByteSize(
nullptr)) {
94 m_element_size = *size;
96 m_start = m_backend.GetChildMemberWithName(
"__begin_").get();
Generic representation of a type in a programming language.
A uniqued constant string class.
const char * GetCString() const
Get the string value as a C string.
llvm::StringRef GetString() const
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
A class that represents a running process on the host machine.
ChildCacheState
Specifies if children need to be re-computed after a call to SyntheticChildrenFrontEnd::Update.
@ eRefetch
Children need to be recomputed dynamically.
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP