58 return llvm::createStringError(
"Failed to read size");
75 first_idx * process_sp->GetAddressByteSize();
79 process_sp->ReadPointerFromMemory(first_address, err);
87 name.
Printf(
"[%" PRIu64
"]", (uint64_t)idx);
100 m_backend.GetChildAtNamePath({
"_Mypair",
"_Myval2"});
110 if (!block_size_decl)
116 ValueObjectSP offset_sp = storage_sp->GetChildMemberWithName(
"_Myoff");
117 ValueObjectSP map_size_sp = storage_sp->GetChildMemberWithName(
"_Mapsize");
118 ValueObjectSP map_sp = storage_sp->GetChildMemberWithName(
"_Map");
119 ValueObjectSP size_sp = storage_sp->GetChildMemberWithName(
"_Mysize");
120 if (!offset_sp || !map_size_sp || !map_sp || !size_sp)
124 uint64_t offset = offset_sp->GetValueAsUnsigned(0, &ok);
128 uint64_t map_size = map_size_sp->GetValueAsUnsigned(0, &ok);
132 uint64_t size = size_sp->GetValueAsUnsigned(0, &ok);
139 element_type = map_sp->GetCompilerType().GetPointeeType().GetPointeeType();
143 auto element_size = element_type.
GetByteSize(
nullptr);
147 m_map = map_sp.get();
161 return llvm::createStringError(
"Type has no child named '%s'",
164 return *optional_idx;
166 return llvm::createStringError(
"Type has no child named '%s'",
172 return valobj_sp->GetChildMemberWithName(
"_Mypair") !=
nullptr;
179 return new MsvcStlDequeSyntheticFrontEnd(valobj_sp);
Represents a generic declaration such as a function declaration.
Scalar GetConstantValue() const
Generic representation of a type in a programming language.
CompilerType GetTypeTemplateArgument(size_t idx, bool expand_pack=false) const
llvm::Expected< uint64_t > GetByteSize(ExecutionContextScope *exe_scope) const
Return the size of the type in bytes.
CompilerDecl GetStaticFieldWithName(llvm::StringRef name) const
A uniqued constant string class.
const char * AsCString(const char *value_if_empty=nullptr) const
Get the string value as a C string.
const char * GetCString() const
Get the string value as a C string.
Execution context objects refer to objects in the execution of the program that is being debugged.
unsigned long long ULongLong(unsigned long long fail_value=0) const
bool Fail() const
Test for error condition.
llvm::StringRef GetString() const
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
SyntheticChildrenFrontEnd(ValueObject &backend)
lldb::ValueObjectSP CreateValueObjectFromAddress(llvm::StringRef name, uint64_t address, const ExecutionContext &exe_ctx, CompilerType type, bool do_deref=true)
virtual lldb::ValueObjectSP GetNonSyntheticValue()
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
std::shared_ptr< lldb_private::Process > ProcessSP