LLDB mainline
|
A frozen ValueObject copied into host memory. More...
#include <ValueObjectConstResult.h>
Static Public Member Functions | |
static lldb::ValueObjectSP | Create (ExecutionContextScope *exe_scope, lldb::ByteOrder byte_order, uint32_t addr_byte_size, lldb::addr_t address=LLDB_INVALID_ADDRESS) |
static lldb::ValueObjectSP | Create (ExecutionContextScope *exe_scope, const CompilerType &compiler_type, ConstString name, const DataExtractor &data, lldb::addr_t address=LLDB_INVALID_ADDRESS) |
static lldb::ValueObjectSP | Create (ExecutionContextScope *exe_scope, const CompilerType &compiler_type, ConstString name, const lldb::DataBufferSP &result_data_sp, lldb::ByteOrder byte_order, uint32_t addr_size, lldb::addr_t address=LLDB_INVALID_ADDRESS) |
static lldb::ValueObjectSP | Create (ExecutionContextScope *exe_scope, const CompilerType &compiler_type, ConstString name, lldb::addr_t address, AddressType address_type, uint32_t addr_byte_size) |
static lldb::ValueObjectSP | Create (ExecutionContextScope *exe_scope, Value &value, ConstString name, Module *module=nullptr) |
static lldb::ValueObjectSP | Create (ExecutionContextScope *exe_scope, const CompilerType &compiler_type, Scalar &scalar, ConstString name, Module *module=nullptr) |
static lldb::ValueObjectSP | Create (ExecutionContextScope *exe_scope, Status &&error) |
Static Public Member Functions inherited from lldb_private::ValueObject | |
static lldb::ValueObjectSP | CreateValueObjectFromExpression (llvm::StringRef name, llvm::StringRef expression, const ExecutionContext &exe_ctx) |
static lldb::ValueObjectSP | CreateValueObjectFromExpression (llvm::StringRef name, llvm::StringRef expression, const ExecutionContext &exe_ctx, const EvaluateExpressionOptions &options) |
static lldb::ValueObjectSP | CreateValueObjectFromAddress (llvm::StringRef name, uint64_t address, const ExecutionContext &exe_ctx, CompilerType type, bool do_deref=true) |
Given an address either create a value object containing the value at that address, or create a value object containing the address itself (pointer value), depending on whether the parameter 'do_deref' is true or false. | |
static lldb::ValueObjectSP | CreateValueObjectFromData (llvm::StringRef name, const DataExtractor &data, const ExecutionContext &exe_ctx, CompilerType type) |
static lldb::ValueObjectSP | CreateValueObjectFromAPInt (lldb::TargetSP target, const llvm::APInt &v, CompilerType type, llvm::StringRef name) |
Create a value object containing the given APInt value. | |
static lldb::ValueObjectSP | CreateValueObjectFromAPFloat (lldb::TargetSP target, const llvm::APFloat &v, CompilerType type, llvm::StringRef name) |
Create a value object containing the given APFloat value. | |
static lldb::ValueObjectSP | CreateValueObjectFromScalar (lldb::TargetSP target, Scalar &s, CompilerType type, llvm::StringRef name) |
Create a value object containing the given Scalar value. | |
static lldb::ValueObjectSP | CreateValueObjectFromBool (lldb::TargetSP target, bool value, llvm::StringRef name) |
Create a value object containing the given boolean value. | |
static lldb::ValueObjectSP | CreateValueObjectFromNullptr (lldb::TargetSP target, CompilerType type, llvm::StringRef name) |
Create a nullptr value object with the specified type (must be a nullptr type). |
Protected Attributes | |
ConstString | m_type_name |
std::optional< uint64_t > | m_byte_size |
ValueObjectConstResultImpl | m_impl |
Protected Attributes inherited from lldb_private::ValueObject | |
ValueObject * | m_parent = nullptr |
The parent value object, or nullptr if this has no parent. | |
ValueObject * | m_root = nullptr |
The root of the hierarchy for this ValueObject (or nullptr if never calculated). | |
EvaluationPoint | m_update_point |
Stores both the stop id and the full context at which this value was last updated. | |
ConstString | m_name |
The name of this object. | |
DataExtractor | m_data |
A data extractor that can be used to extract the value. | |
Value | m_value |
Status | m_error |
An error object that can describe any errors that occur when updating values. | |
std::string | m_value_str |
Cached value string that will get cleared if/when the value is updated. | |
std::string | m_old_value_str |
Cached old value string from the last time the value was gotten. | |
std::string | m_location_str |
Cached location string that will get cleared if/when the value is updated. | |
std::string | m_summary_str |
Cached summary string that will get cleared if/when the value is updated. | |
std::string | m_object_desc_str |
Cached result of the "object printer". | |
CompilerType | m_override_type |
If the type of the value object should be overridden, the type to impose. | |
ValueObjectManager * | m_manager = nullptr |
This object is managed by the root object (any ValueObject that gets created without a parent.) The manager gets passed through all the generations of dependent objects, and will keep the whole cluster of objects alive as long as a shared pointer to any of them has been handed out. | |
ChildrenManager | m_children |
std::map< ConstString, ValueObject * > | m_synthetic_children |
ValueObject * | m_dynamic_value = nullptr |
ValueObject * | m_synthetic_value = nullptr |
ValueObject * | m_deref_valobj = nullptr |
lldb::ValueObjectSP | m_addr_of_valobj_sp |
We have to hold onto a shared pointer to this one because it is created as an independent ValueObjectConstResult, which isn't managed by us. | |
lldb::Format | m_format = lldb::eFormatDefault |
lldb::Format | m_last_format = lldb::eFormatDefault |
uint32_t | m_last_format_mgr_revision = 0 |
lldb::TypeSummaryImplSP | m_type_summary_sp |
lldb::TypeFormatImplSP | m_type_format_sp |
lldb::SyntheticChildrenSP | m_synthetic_children_sp |
ProcessModID | m_user_id_of_forced_summary |
AddressType | m_address_type_of_ptr_or_ref_children = eAddressTypeInvalid |
llvm::SmallVector< uint8_t, 16 > | m_value_checksum |
lldb::LanguageType | m_preferred_display_language = lldb::eLanguageTypeUnknown |
uint64_t | m_language_flags = 0 |
UserID | m_id |
Unique identifier for every value object. | |
struct lldb_private::ValueObject::Bitflags | m_flags |
Friends | |
class | ValueObjectConstResultImpl |
A frozen ValueObject copied into host memory.
Definition at line 34 of file ValueObjectConstResult.h.
|
overridedefault |
References error(), and LLDB_INVALID_ADDRESS.
|
private |
Definition at line 39 of file ValueObjectConstResult.cpp.
References lldb_private::eAddressTypeLoad, lldb_private::ValueObject::m_data, m_impl, lldb_private::ValueObject::SetAddressTypeOfChildren(), lldb_private::ValueObject::SetIsConstant(), lldb_private::ValueObject::SetValueIsValid(), and lldb_private::ValueObject::ValueObject().
Referenced by Create(), Create(), Create(), Create(), Create(), Create(), Create(), operator=(), and ValueObjectConstResult().
|
private |
Definition at line 63 of file ValueObjectConstResult.cpp.
References lldb_private::eAddressTypeLoad, lldb_private::Value::HostAddress, lldb_private::ValueObject::m_data, m_impl, lldb_private::ValueObject::m_name, lldb_private::ValueObject::m_value, lldb_private::ValueObject::SetAddressTypeOfChildren(), lldb_private::ValueObject::SetIsConstant(), lldb_private::ValueObject::SetValueIsValid(), and lldb_private::ValueObject::ValueObject().
|
private |
Definition at line 118 of file ValueObjectConstResult.cpp.
References lldb_private::eAddressTypeLoad, lldb_private::Value::HostAddress, lldb_private::ValueObject::m_data, m_impl, lldb_private::ValueObject::m_name, lldb_private::ValueObject::m_value, lldb_private::ValueObject::SetAddressTypeOfChildren(), lldb_private::ValueObject::SetIsConstant(), lldb_private::ValueObject::SetValueIsValid(), and lldb_private::ValueObject::ValueObject().
|
private |
Definition at line 149 of file ValueObjectConstResult.cpp.
References lldb_private::eAddressTypeFile, lldb_private::eAddressTypeHost, lldb_private::eAddressTypeInvalid, lldb_private::eAddressTypeLoad, lldb_private::Value::FileAddress, lldb_private::ValueObject::GetData(), lldb_private::Value::HostAddress, lldb_private::Value::LoadAddress, lldb_private::ValueObject::m_data, m_impl, lldb_private::ValueObject::m_name, m_type_name, lldb_private::ValueObject::m_value, lldb_private::Value::Scalar, lldb_private::ValueObject::SetAddressTypeOfChildren(), lldb_private::ValueObject::SetIsConstant(), lldb_private::ValueObject::SetValueIsValid(), and lldb_private::ValueObject::ValueObject().
|
private |
Definition at line 194 of file ValueObjectConstResult.cpp.
References lldb_private::ExecutionContextScope::CalculateExecutionContext(), lldb_private::ValueObject::m_data, lldb_private::ValueObject::m_error, m_impl, lldb_private::ValueObject::m_name, lldb_private::ValueObject::m_value, and lldb_private::ValueObject::ValueObject().
|
private |
Definition at line 206 of file ValueObjectConstResult.cpp.
References lldb_private::ExecutionContextScope::CalculateExecutionContext(), lldb_private::eAddressTypeLoad, lldb_private::ValueObject::m_data, lldb_private::ValueObject::m_error, m_impl, lldb_private::ValueObject::m_name, lldb_private::ValueObject::m_value, lldb_private::Value::Scalar, lldb_private::ValueObject::SetAddressTypeOfChildren(), lldb_private::ValueObject::SetIsConstant(), lldb_private::ValueObject::SetValueIsValid(), and lldb_private::ValueObject::ValueObject().
|
private |
Definition at line 186 of file ValueObjectConstResult.cpp.
References error(), lldb_private::ValueObject::m_error, m_impl, lldb_private::ValueObject::SetIsConstant(), and lldb_private::ValueObject::ValueObject().
|
privatedelete |
References ValueObjectConstResult().
|
overridevirtual |
Reimplemented from lldb_private::ValueObject.
Definition at line 291 of file ValueObjectConstResult.cpp.
|
overridevirtual |
Should only be called by ValueObject::GetNumChildren().
Implements lldb_private::ValueObject.
Definition at line 250 of file ValueObjectConstResult.cpp.
References lldb_private::ValueObject::GetCompilerType(), lldb_private::ValueObject::GetExecutionContextRef(), and lldb_private::CompilerType::GetNumChildren().
|
static |
Definition at line 52 of file ValueObjectConstResult.cpp.
References lldb_private::ClusterManager< ValueObject >::Create(), and ValueObjectConstResult().
|
static |
Definition at line 85 of file ValueObjectConstResult.cpp.
References lldb_private::ClusterManager< ValueObject >::Create(), and ValueObjectConstResult().
|
static |
Definition at line 136 of file ValueObjectConstResult.cpp.
References lldb_private::ClusterManager< ValueObject >::Create(), and ValueObjectConstResult().
|
static |
Definition at line 108 of file ValueObjectConstResult.cpp.
References lldb_private::ClusterManager< ValueObject >::Create(), and ValueObjectConstResult().
|
static |
Definition at line 29 of file ValueObjectConstResult.cpp.
References lldb_private::ClusterManager< ValueObject >::Create(), and ValueObjectConstResult().
Referenced by lldb_private::ValueObject::AddressOf(), lldb_private::ValueObjectConstResultImpl::AddressOf(), lldb_private::ValueObject::Cast(), lldb_private::ValueObject::CastToBasicType(), lldb_private::ValueObject::CastToEnumType(), lldb_private::ClangExpressionVariable::ClangExpressionVariable(), lldb_private::ClangExpressionVariable::ClangExpressionVariable(), lldb_private::ClangExpressionVariable::ClangExpressionVariable(), lldb_private::ValueObject::CreateConstantValue(), lldb::SBFrame::CreateProcessIsRunningExprEvalError(), lldb_private::ValueObject::CreateValueObjectFromAddress(), lldb_private::ValueObject::CreateValueObjectFromData(), lldb_private::ValueObject::CreateValueObjectFromScalar(), EntityPersistentVariable::Dematerialize(), EntityResultVariable::Dematerialize(), lldb_private::StackFrame::DILGetValueForVariableExpressionPath(), dump_type_value(), lldb_private::UserExpression::Evaluate(), lldb::SBFrame::EvaluateExpression(), lldb::SBTarget::EvaluateExpression(), lldb_private::AppleObjCRuntime::GetBacktraceThreadFromException(), lldb_private::formatters::BlockPointerSyntheticFrontEnd::GetChildAtIndex(), lldb_private::formatters::VectorTypeSyntheticFrontEnd::GetChildAtIndex(), lldb::SBTypeStaticField::GetConstantValue(), NSIndexPathSyntheticFrontEnd::Impl::InlinedIndexes::GetIndexAtIndex(), ABIMacOSX_arm64::GetReturnValueObjectImpl(), ABIMacOSX_arm::GetReturnValueObjectImpl(), ABIMacOSX_i386::GetReturnValueObjectImpl(), ABISysV_arc::GetReturnValueObjectImpl(), ABISysV_arm64::GetReturnValueObjectImpl(), ABISysV_arm::GetReturnValueObjectImpl(), ABISysV_hexagon::GetReturnValueObjectImpl(), ABISysV_mips64::GetReturnValueObjectImpl(), ABISysV_mips::GetReturnValueObjectImpl(), ABISysV_ppc::GetReturnValueObjectImpl(), ABISysV_riscv::GetReturnValueObjectImpl(), ABISysV_x86_64::GetReturnValueObjectImpl(), ABIWindows_x86_64::GetReturnValueObjectImpl(), ABISysV_arc::GetReturnValueObjectSimple(), ABISysV_i386::GetReturnValueObjectSimple(), ABISysV_loongarch::GetReturnValueObjectSimple(), ABISysV_ppc::GetReturnValueObjectSimple(), ABISysV_riscv::GetReturnValueObjectSimple(), ABISysV_s390x::GetReturnValueObjectSimple(), ABISysV_x86_64::GetReturnValueObjectSimple(), ABIWindows_x86_64::GetReturnValueObjectSimple(), lldb_private::Thread::GetSiginfoValue(), GetValObjFromFPRegs(), GetValObjFromFPRegs(), GetValObjFromIntRegs(), GetValObjFromIntRegs(), EntityPersistentVariable::MakeAllocation(), lldb_private::ValueObject::Persist(), and lldb_private::AbortWithPayloadFrameRecognizer::RecognizeFrame().
|
static |
Definition at line 179 of file ValueObjectConstResult.cpp.
References lldb_private::ClusterManager< ValueObject >::Create(), error(), and ValueObjectConstResult().
|
static |
Definition at line 99 of file ValueObjectConstResult.cpp.
References lldb_private::ClusterManager< ValueObject >::Create(), and ValueObjectConstResult().
|
inlineoverrideprivatevirtual |
Should only be called by ValueObject::GetChildAtIndex().
Reimplemented from lldb_private::ValueObject.
Definition at line 162 of file ValueObjectConstResult.h.
References m_impl, and lldb_private::ValueObject::ValueObject().
|
inlineoverrideprivatevirtual |
Should only be called by ValueObject::GetSyntheticArrayMember().
Reimplemented from lldb_private::ValueObject.
Definition at line 165 of file ValueObjectConstResult.h.
References m_impl, and lldb_private::ValueObject::ValueObject().
|
overridevirtual |
Reimplemented from lldb_private::ValueObject.
Definition at line 280 of file ValueObjectConstResult.cpp.
|
overridevirtual |
Reimplemented from lldb_private::ValueObject.
Definition at line 324 of file ValueObjectConstResult.cpp.
References m_impl.
|
overridevirtual |
Reimplemented from lldb_private::ValueObject.
Definition at line 296 of file ValueObjectConstResult.cpp.
References m_impl.
|
overridevirtual |
Implements lldb_private::ValueObject.
Definition at line 233 of file ValueObjectConstResult.cpp.
References lldb_private::ExecutionContext::GetBestExecutionContextScope(), lldb_private::CompilerType::GetByteSize(), lldb_private::ValueObject::GetCompilerType(), lldb_private::ValueObject::GetExecutionContextRef(), m_byte_size, and SetByteSize().
|
overrideprotectedvirtual |
Implements lldb_private::ValueObject.
Definition at line 225 of file ValueObjectConstResult.cpp.
References lldb_private::ValueObject::m_value.
Referenced by GetPreferredDisplayLanguage().
|
overridevirtual |
Reimplemented from lldb_private::ValueObject.
Definition at line 264 of file ValueObjectConstResult.cpp.
References lldb_private::ValueObject::GetCompilerType(), and lldb_private::CompilerType::GetDisplayTypeName().
|
overridevirtual |
Reimplemented from lldb_private::ValueObject.
Definition at line 307 of file ValueObjectConstResult.cpp.
References lldb::eNoDynamicValues, lldb_private::ValueObject::GetExecutionContextRef(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::ValueObject::IsDynamic(), lldb_private::Process::IsPossibleDynamicValue(), and lldb_private::ValueObject::m_dynamic_value.
|
inlineoverridevirtual |
Reimplemented from lldb_private::ValueObject.
Definition at line 99 of file ValueObjectConstResult.h.
References m_impl.
|
overridevirtual |
Reimplemented from lldb_private::ValueObject.
Definition at line 300 of file ValueObjectConstResult.cpp.
References m_impl.
|
overridevirtual |
Reimplemented from lldb_private::ValueObject.
Definition at line 328 of file ValueObjectConstResult.cpp.
References lldb::eLanguageTypeUnknown, GetCompilerTypeImpl(), lldb_private::CompilerType::GetMinimumLanguage(), and lldb_private::ValueObject::m_preferred_display_language.
|
overridevirtual |
Reimplemented from lldb_private::ValueObject.
Definition at line 284 of file ValueObjectConstResult.cpp.
References m_impl.
|
overridevirtual |
Reimplemented from lldb_private::ValueObject.
Definition at line 258 of file ValueObjectConstResult.cpp.
References lldb_private::ValueObject::GetCompilerType(), lldb_private::CompilerType::GetTypeName(), and m_type_name.
|
overridevirtual |
Implements lldb_private::ValueObject.
Definition at line 229 of file ValueObjectConstResult.cpp.
References lldb::eValueTypeConstResult.
|
overridevirtual |
Reimplemented from lldb_private::ValueObject.
Definition at line 274 of file ValueObjectConstResult.cpp.
|
privatedelete |
References ValueObjectConstResult().
void ValueObjectConstResult::SetByteSize | ( | size_t | size | ) |
Definition at line 247 of file ValueObjectConstResult.cpp.
References m_byte_size.
Referenced by GetByteSize().
|
inlineoverridevirtual |
Reimplemented from lldb_private::ValueObject.
Definition at line 101 of file ValueObjectConstResult.h.
References lldb_private::eAddressTypeLoad, LLDB_INVALID_ADDRESS, and m_impl.
|
overrideprotectedvirtual |
Implements lldb_private::ValueObject.
Definition at line 268 of file ValueObjectConstResult.cpp.
References lldb_private::ValueObject::SetValueIsValid().
|
friend |
Definition at line 124 of file ValueObjectConstResult.h.
References error(), and ValueObjectConstResultImpl.
Referenced by ValueObjectConstResultImpl.
|
protected |
Definition at line 119 of file ValueObjectConstResult.h.
Referenced by GetByteSize(), and SetByteSize().
|
protected |
Definition at line 121 of file ValueObjectConstResult.h.
Referenced by AddressOf(), CreateChildAtIndex(), CreateSyntheticArrayMember(), Dereference(), DoCast(), GetAddressOf(), GetLiveAddress(), GetPointeeData(), GetSyntheticChildAtOffset(), SetLiveAddress(), ValueObjectConstResult(), ValueObjectConstResult(), ValueObjectConstResult(), ValueObjectConstResult(), ValueObjectConstResult(), ValueObjectConstResult(), and ValueObjectConstResult().
|
protected |
Definition at line 118 of file ValueObjectConstResult.h.
Referenced by GetTypeName(), and ValueObjectConstResult().