14#include "llvm/Support/Error.h"
15#include "llvm/Support/ErrorExtras.h"
16#include "llvm/Support/MathExtras.h"
62llvm::Expected<uint32_t>
64 if (!
m_len || !
m_len->GetCompilerType().IsInteger())
65 return llvm::createStringError(
"Invalid vector length");
66 return m_len->GetValueAsUnsigned(0);
80 name << llvm::formatv(
"[{0}]", idx);
92 .GetChildAtNamePath({
"buf",
"inner",
"ptr",
"pointer",
"pointer"})
98 m_backend.GetChildAtNamePath({
"buf",
"inner",
"ptr",
"pointer"}).get();
103 uint64_t len =
m_len->GetValueAsUnsigned(0);
106 uint32_t ptr_byte_size = target_sp->GetArchitecture().GetAddressByteSize();
107 uint32_t ptr_bit_size = ptr_byte_size * 8;
108 if (len > llvm::maxUIntN(ptr_bit_size - 1)) {
115 m_backend.GetCompilerType().GetNonReferenceType().GetTypeTemplateArgument(
118 llvm::Expected<uint64_t> size_or_err =
m_element_type.GetByteSize(
nullptr);
136llvm::Expected<size_t>
138 llvm::StringRef name) {
140 return llvm::createStringErrorV(
"type has no child named '{0}'", name);
143 return llvm::createStringErrorV(
"type has no child named '{0}'", name);
145 return *optional_idx;
#define LLDB_LOG_ERRORV(log, error,...)
Generic representation of a type in a programming language.
size_t GetNumTemplateArguments(bool expand_pack=false) const
Return the number of template arguments the type has.
CompilerType GetNonReferenceType() const
If this type is a reference to a type (L value or R value reference), return a new type with the refe...
llvm::StringRef GetString() const
uint32_t CalculateNumChildrenIgnoringErrors(uint32_t max=UINT32_MAX)
lldb::ValueObjectSP CreateChildValueObjectFromAddress(llvm::StringRef name, uint64_t address, const ExecutionContext &exe_ctx, CompilerType type, bool do_deref=true)
SyntheticChildrenFrontEnd(ValueObject &backend)
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.
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
std::shared_ptr< lldb_private::Target > TargetSP