30 return cast_valobj_ptr->
GetSP();
37 m_value.SetCompilerType(cast_type);
48 return children_count;
49 return *children_count <= max ? *children_count : max;
54 return m_value.GetValueByteSize(
nullptr, &exe_ctx);
66 if (
m_parent->UpdateValueIfNeeded(
false)) {
71 m_value.SetCompilerType(compiler_type);
Generic representation of a type in a programming language.
llvm::Expected< uint32_t > GetNumChildren(bool omit_empty_base_classes, const ExecutionContext *exe_ctx) const
A uniqued constant string class.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
CompilerType GetCompilerTypeImpl() override
llvm::Expected< uint32_t > CalculateNumChildren(uint32_t max) override
Should only be called by ValueObject::GetNumChildren().
llvm::Expected< uint64_t > GetByteSize() override
bool IsInScope() override
static lldb::ValueObjectSP Create(ValueObject &parent, ConstString name, const CompilerType &cast_type)
ValueObjectCast(ValueObject &parent, ConstString name, const CompilerType &cast_type)
bool UpdateValue() override
~ValueObjectCast() override
lldb::ValueType GetValueType() const override
void SetValueIsValid(bool valid)
EvaluationPoint m_update_point
Stores both the stop id and the full context at which this value was last updated.
CompilerType GetCompilerType()
ValueObject(ExecutionContextScope *exe_scope, ValueObjectManager &manager, AddressType child_ptr_or_ref_addr_type=eAddressTypeLoad)
Use this constructor to create a "root variable object".
lldb::ValueObjectSP GetSP()
Status m_error
An error object that can describe any errors that occur when updating values.
DataExtractor m_data
A data extractor that can be used to extract the value.
void SetValueDidChange(bool value_changed)
virtual lldb::ModuleSP GetModule()
Return the module associated with this value object in case the value is from an executable file and ...
ValueObject * m_parent
The parent value object, or nullptr if this has no parent.
void SetName(ConstString name)
Change the name of the current ValueObject.
const ExecutionContextRef & GetExecutionContextRef() const
virtual bool CanProvideValue()
void SetAddressTypeOfChildren(AddressType at)
const Scalar & GetScalar() const
See comment on m_scalar to understand what GetScalar returns.
ValueType GetValueType() const
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP