13#include "llvm/Support/ErrorExtras.h"
59 offset = offset +
m_start->GetValueAsUnsigned(0);
61 name.
Printf(
"[%" PRIu64
"]", (uint64_t)idx);
81 llvm::Expected<uint64_t> size_or_err =
m_element_type.GetByteSize(
nullptr);
95 if (
auto size_sp =
m_backend.GetChildMemberWithName(
"_Mysize"))
99 .GetDirectBaseClassAtIndex(0,
nullptr)
100 .GetStaticFieldWithName(
"_Mysize"))
106llvm::Expected<size_t>
108 llvm::StringRef name) {
110 return llvm::createStringErrorV(
"type has no child named '{0}'", name);
114 return llvm::createStringErrorV(
"type has no child named '{0}'", name);
115 return *optional_idx;
120 return valobj_sp->GetChildMemberWithName(
"_Mydata") !=
nullptr;
#define LLDB_LOG_ERRORV(log, error,...)
Generic representation of a type in a programming language.
llvm::StringRef GetString() const
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
lldb::ValueObjectSP CreateChildValueObjectFromAddress(llvm::StringRef name, uint64_t address, const ExecutionContext &exe_ctx, CompilerType type, bool do_deref=true)
SyntheticChildrenFrontEnd(ValueObject &backend)
virtual lldb::ValueObjectSP GetNonSyntheticValue()
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