|
LLDB mainline
|
#include <SBValue.h>
Public Member Functions | |
| SBValue () | |
| SBValue (const lldb::SBValue &rhs) | |
| lldb::SBValue & | operator= (const lldb::SBValue &rhs) |
| ~SBValue () | |
| operator bool () const | |
| bool | IsValid () |
| void | Clear () |
| SBError | GetError () |
| lldb::user_id_t | GetID () |
| const char * | GetName () |
| const char * | GetTypeName () |
| const char * | GetDisplayTypeName () |
| size_t | GetByteSize () |
| bool | IsInScope () |
| lldb::Format | GetFormat () |
| void | SetFormat (lldb::Format format) |
| const char * | GetValue () |
| int64_t | GetValueAsSigned (lldb::SBError &error, int64_t fail_value=0) |
| uint64_t | GetValueAsUnsigned (lldb::SBError &error, uint64_t fail_value=0) |
| int64_t | GetValueAsSigned (int64_t fail_value=0) |
| uint64_t | GetValueAsUnsigned (uint64_t fail_value=0) |
| lldb::addr_t | GetValueAsAddress () |
| ValueType | GetValueType () |
| bool | GetValueDidChange () |
| const char * | GetSummary () |
| const char * | GetSummary (lldb::SBStream &stream, lldb::SBTypeSummaryOptions &options) |
| const char * | GetObjectDescription () |
| lldb::SBValue | GetParent () |
| lldb::SBValue | GetDynamicValue (lldb::DynamicValueType use_dynamic) |
| lldb::SBValue | GetStaticValue () |
| lldb::SBValue | GetNonSyntheticValue () |
| lldb::SBValue | GetSyntheticValue () |
| lldb::DynamicValueType | GetPreferDynamicValue () |
| void | SetPreferDynamicValue (lldb::DynamicValueType use_dynamic) |
| bool | GetPreferSyntheticValue () |
| void | SetPreferSyntheticValue (bool use_synthetic) |
| bool | IsDynamic () |
| bool | IsSynthetic () |
| bool | IsSyntheticChildrenGenerated () |
| void | SetSyntheticChildrenGenerated (bool) |
| const char * | GetLocation () |
| LLDB_DEPRECATED_FIXME ("Use the variant that takes an SBError &", "SetValueFromCString(const char *, SBError &)") bool SetValueFromCString(const char *value_str) | |
| bool | SetValueFromCString (const char *value_str, lldb::SBError &error) |
| bool | CanSetValue () |
| Returns false if this value cannot be modified through SetValueFromCString() or SetData(), for instance because it exists in the target, but has no writable storage (for example a constant or variable value that was reconstructed from debug info as the result of a computation). | |
| lldb::SBError | CanSet () |
| Returns an error describing why this value cannot be modified through SetValueFromCString() or SetData(), for instance because it exists in the target, but has no writable storage (for example a constant or variable value that was reconstructed from debug info as the result of a computation). | |
| lldb::SBTypeFormat | GetTypeFormat () |
| lldb::SBTypeSummary | GetTypeSummary () |
| lldb::SBTypeFilter | GetTypeFilter () |
| lldb::SBTypeSynthetic | GetTypeSynthetic () |
| void | SetTypeSynthetic (lldb::SBTypeSynthetic &synthetic) |
| Override the SBTypeSynthetic chosen by the DataFormatter system for this instance. | |
| lldb::SBScriptObject | GetTypeSyntheticImplementation () |
| This function's primary use is to ease inspecting the internal state of scripted synthetic children providers for debugging purposes. | |
| lldb::SBValue | GetChildAtIndex (uint32_t idx) |
| lldb::SBValue | CreateChildAtOffset (const char *name, uint32_t offset, lldb::SBType type) |
| lldb::SBValue | Cast (lldb::SBType type) |
| lldb::SBValue | CreateValueFromExpression (const char *name, const char *expression) |
| lldb::SBValue | CreateValueFromExpression (const char *name, const char *expression, SBExpressionOptions &options) |
| lldb::SBValue | CreateValueFromAddress (const char *name, lldb::addr_t address, lldb::SBType type) |
| lldb::SBValue | CreateValueFromData (const char *name, lldb::SBData data, lldb::SBType type) |
| lldb::SBValue | CreateBoolValue (const char *name, bool value) |
| lldb::SBValue | GetChildAtIndex (uint32_t idx, lldb::DynamicValueType use_dynamic, bool treat_as_array) |
| Get a child value by index from a value. | |
| uint32_t | GetIndexOfChildWithName (const char *name) |
| lldb::SBValue | GetChildMemberWithName (const char *name) |
| lldb::SBValue | GetChildMemberWithName (const char *name, lldb::DynamicValueType use_dynamic) |
| lldb::SBValue | GetValueForExpressionPath (const char *expr_path) |
| lldb::SBValue | AddressOf () |
| lldb::addr_t | GetLoadAddress () |
| lldb::SBAddress | GetAddress () |
| lldb::SBData | GetPointeeData (uint32_t item_idx=0, uint32_t item_count=1) |
| Get an SBData wrapping what this SBValue points to. | |
| lldb::SBData | GetData () |
| Get an SBData wrapping the contents of this SBValue. | |
| bool | SetData (lldb::SBData &data, lldb::SBError &error) |
| lldb::SBValue | Clone (const char *new_name) |
| Creates a copy of the SBValue with a new name and setting the current SBValue as its parent. | |
| lldb::SBDeclaration | GetDeclaration () |
| bool | MightHaveChildren () |
| Find out if a SBValue might have children. | |
| bool | IsRuntimeSupportValue () |
| uint32_t | GetNumChildren () |
| Return the number of children of this variable. | |
| uint32_t | GetNumChildren (uint32_t max) |
| Return the numer of children of this variable, with a hint that the caller is interested in at most max children. | |
| void * | GetOpaqueType () |
| lldb::SBTarget | GetTarget () |
| lldb::SBProcess | GetProcess () |
| lldb::SBThread | GetThread () |
| lldb::SBFrame | GetFrame () |
| lldb::SBValue | Dereference () |
| LLDB_DEPRECATED ("Use GetType().IsPointerType() instead") bool TypeIsPointerType() | |
| lldb::SBType | GetType () |
| lldb::SBValue | Persist () |
| bool | GetDescription (lldb::SBStream &description) |
| bool | GetDescription (lldb::SBStream &description, lldb::DescriptionLevel description_level) |
| bool | GetExpressionPath (lldb::SBStream &description) |
| bool | GetExpressionPath (lldb::SBStream &description, bool qualify_cxx_base_classes) |
| lldb::SBValue | EvaluateExpression (const char *expr) const |
| lldb::SBValue | EvaluateExpression (const char *expr, const SBExpressionOptions &options) const |
| lldb::SBValue | EvaluateExpression (const char *expr, const SBExpressionOptions &options, const char *name) const |
| lldb::SBWatchpoint | Watch (bool resolve_location, bool read, bool write, SBError &error) |
| Watch this value if it resides in memory. | |
| lldb::SBWatchpoint | Watch (bool resolve_location, bool read, bool write) |
| lldb::SBWatchpoint | WatchPointee (bool resolve_location, bool read, bool write, SBError &error) |
| Watch this value that this value points to in memory. | |
| lldb::SBValue | GetVTable () |
| If this value represents a C++ class that has a vtable, return an value that represents the virtual function table. | |
Protected Member Functions | |
| SBValue (const lldb::ValueObjectSP &value_sp) | |
| lldb::ValueObjectSP | GetSP () const |
| Same as the protected version of GetSP that takes a locker, except that we make the locker locally in the function. | |
| lldb::ValueObjectSP | GetSP (lldb_private::ValueLocker &value_locker) const |
| Get the appropriate ValueObjectSP from this SBValue, consulting the use_dynamic and use_synthetic options passed in to SetSP when the SBValue's contents were set. | |
| void | SetSP (const lldb::ValueObjectSP &sp) |
| void | SetSP (const lldb::ValueObjectSP &sp, bool use_synthetic) |
| void | SetSP (const lldb::ValueObjectSP &sp, lldb::DynamicValueType use_dynamic) |
| void | SetSP (const lldb::ValueObjectSP &sp, lldb::DynamicValueType use_dynamic, bool use_synthetic) |
| void | SetSP (const lldb::ValueObjectSP &sp, lldb::DynamicValueType use_dynamic, bool use_synthetic, const char *name) |
Private Types | |
| typedef std::shared_ptr< lldb_private::ValueImpl > | ValueImplSP |
Private Member Functions | |
| void | SetSP (ValueImplSP impl_sp) |
Private Attributes | |
| ValueImplSP | m_opaque_sp |
Friends | |
| class | SBBlock |
| class | SBCommandReturnObject |
| class | SBFrame |
| class | SBModule |
| class | SBTarget |
| class | SBThread |
| class | SBType |
| class | SBTypeStaticField |
| class | SBTypeSummary |
| class | SBValueList |
| class | lldb_private::python::SWIGBridge |
| class | lldb_private::ScriptInterpreterBridge |
|
private |
| SBValue::SBValue | ( | ) |
Definition at line 55 of file SBValue.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by AddressOf(), Dereference(), EvaluateExpression(), EvaluateExpression(), GetChildAtIndex(), GetChildAtIndex(), GetChildMemberWithName(), GetChildMemberWithName(), GetDynamicValue(), GetNonSyntheticValue(), GetParent(), GetStaticValue(), GetSyntheticValue(), GetValueForExpressionPath(), GetVTable(), LLDB_DEPRECATED(), LLDB_DEPRECATED_FIXME(), lldb_private::python::SWIGBridge, operator=(), Persist(), and SBValue().
| SBValue::SBValue | ( | const lldb::SBValue & | rhs | ) |
Definition at line 63 of file SBValue.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, SBValue(), and SetSP().
|
default |
References Clear(), error(), GetByteSize(), GetDisplayTypeName(), GetDynamicValue(), GetError(), GetFormat(), GetID(), GetLocation(), GetNonSyntheticValue(), GetObjectDescription(), GetParent(), GetPreferDynamicValue(), GetPreferSyntheticValue(), GetStaticValue(), GetSummary(), GetSyntheticValue(), GetTypeName(), GetValue(), GetValueAsAddress(), GetValueAsSigned(), GetValueAsUnsigned(), GetValueDidChange(), GetValueType(), IsDynamic(), IsInScope(), IsSynthetic(), IsSyntheticChildrenGenerated(), IsValid(), SetFormat(), SetPreferDynamicValue(), SetPreferSyntheticValue(), and SetSyntheticChildrenGenerated().
|
protected |
Definition at line 57 of file SBValue.cpp.
References LLDB_INSTRUMENT_VA, and SetSP().
| lldb::SBValue SBValue::AddressOf | ( | ) |
Definition at line 1245 of file SBValue.cpp.
References error(), GetPreferDynamicValue(), GetPreferSyntheticValue(), GetSP(), LLDB_INSTRUMENT_VA, SBValue(), and SetSP().
Referenced by LLDB_DEPRECATED_FIXME().
| lldb::SBError SBValue::CanSet | ( | ) |
Returns an error describing why this value cannot be modified through SetValueFromCString() or SetData(), for instance because it exists in the target, but has no writable storage (for example a constant or variable value that was reconstructed from debug info as the result of a computation).
A success result does not guarantee a write will succeed.
Definition at line 319 of file SBValue.cpp.
References lldb_private::Status::AsCString(), lldb_private::Status::FromError(), lldb_private::Status::FromErrorStringWithFormat(), lldb_private::ValueLocker::GetError(), GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBError.
Referenced by CanSetValue(), and LLDB_DEPRECATED_FIXME().
| bool SBValue::CanSetValue | ( | ) |
Returns false if this value cannot be modified through SetValueFromCString() or SetData(), for instance because it exists in the target, but has no writable storage (for example a constant or variable value that was reconstructed from debug info as the result of a computation).
A true result does not guarantee a write will succeed.
Definition at line 313 of file SBValue.cpp.
References CanSet(), LLDB_INSTRUMENT_VA, and lldb::SBError::Success().
Referenced by LLDB_DEPRECATED_FIXME().
| lldb::SBValue SBValue::Cast | ( | lldb::SBType | type | ) |
Definition at line 449 of file SBValue.cpp.
References GetPreferDynamicValue(), GetPreferSyntheticValue(), lldb::SBType::GetSP(), GetSP(), LLDB_INSTRUMENT_VA, SBType, and SetSP().
Referenced by LLDB_DEPRECATED_FIXME().
| void SBValue::Clear | ( | ) |
Definition at line 94 of file SBValue.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBValue().
| lldb::SBValue SBValue::Clone | ( | const char * | new_name | ) |
Creates a copy of the SBValue with a new name and setting the current SBValue as its parent.
It should be used when we want to change the name of a SBValue without modifying the actual SBValue itself (e.g. sythetic child provider).
Definition at line 1369 of file SBValue.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBValue.
Referenced by LLDB_DEPRECATED_FIXME().
| lldb::SBValue SBValue::CreateBoolValue | ( | const char * | name, |
| bool | value ) |
Definition at line 530 of file SBValue.cpp.
References lldb::eLanguageTypeC, lldb_private::ExecutionContext::GetFramePtr(), lldb_private::GetLog(), GetSP(), LLDB_INSTRUMENT_VA, LLDB_LOG_ERROR, SetSP(), and lldb_private::Types.
Referenced by LLDB_DEPRECATED_FIXME().
| lldb::SBValue SBValue::CreateChildAtOffset | ( | const char * | name, |
| uint32_t | offset, | ||
| lldb::SBType | type ) |
Definition at line 430 of file SBValue.cpp.
References GetPreferDynamicValue(), GetPreferSyntheticValue(), lldb::SBType::GetSP(), GetSP(), lldb::SBType::IsValid(), LLDB_INSTRUMENT_VA, SBType, and SetSP().
Referenced by LLDB_DEPRECATED_FIXME().
| lldb::SBValue SBValue::CreateValueFromAddress | ( | const char * | name, |
| lldb::addr_t | address, | ||
| lldb::SBType | type ) |
Definition at line 491 of file SBValue.cpp.
References lldb::SBType::GetSP(), GetSP(), LLDB_INSTRUMENT_VA, SBType, and SetSP().
Referenced by LLDB_DEPRECATED_FIXME().
| lldb::SBValue SBValue::CreateValueFromData | ( | const char * | name, |
| lldb::SBData | data, | ||
| lldb::SBType | type ) |
Definition at line 511 of file SBValue.cpp.
References lldb_private::eAddressTypeLoad, lldb::SBType::GetSP(), GetSP(), LLDB_INSTRUMENT_VA, SBType, and SetSP().
Referenced by LLDB_DEPRECATED_FIXME().
| lldb::SBValue SBValue::CreateValueFromExpression | ( | const char * | name, |
| const char * | expression ) |
Definition at line 462 of file SBValue.cpp.
References CreateValueFromExpression(), LLDB_INSTRUMENT_VA, lldb::SBExpressionOptions::ref(), and lldb_private::EvaluateExpressionOptions::SetKeepInMemory().
Referenced by CreateValueFromExpression(), and LLDB_DEPRECATED_FIXME().
| lldb::SBValue SBValue::CreateValueFromExpression | ( | const char * | name, |
| const char * | expression, | ||
| SBExpressionOptions & | options ) |
Definition at line 471 of file SBValue.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, lldb::SBExpressionOptions::ref(), and SetSP().
| SBValue SBValue::Dereference | ( | ) |
Definition at line 922 of file SBValue.cpp.
References error(), GetSP(), LLDB_INSTRUMENT_VA, and SBValue().
Referenced by LLDB_DEPRECATED_FIXME(), and WatchPointee().
| lldb::SBValue SBValue::EvaluateExpression | ( | const char * | expr | ) | const |
Definition at line 1104 of file SBValue.cpp.
References EvaluateExpression(), GetSP(), LLDB_INSTRUMENT_VA, SBValue(), lldb::SBExpressionOptions::SetFetchDynamicValue(), lldb::SBExpressionOptions::SetIgnoreBreakpoints(), and lldb::SBExpressionOptions::SetUnwindOnError().
Referenced by EvaluateExpression(), EvaluateExpression(), and LLDB_DEPRECATED().
| lldb::SBValue SBValue::EvaluateExpression | ( | const char * | expr, |
| const SBExpressionOptions & | options ) const |
Definition at line 1125 of file SBValue.cpp.
References EvaluateExpression(), and LLDB_INSTRUMENT_VA.
| lldb::SBValue SBValue::EvaluateExpression | ( | const char * | expr, |
| const SBExpressionOptions & | options, | ||
| const char * | name ) const |
Definition at line 1132 of file SBValue.cpp.
References lldb::SBExpressionOptions::GetFetchDynamicValue(), lldb_private::ExecutionContext::GetFramePtr(), GetSP(), LLDB_INSTRUMENT_VA, lldb::SBExpressionOptions::ref(), SBValue(), and SetSP().
| lldb::SBAddress SBValue::GetAddress | ( | ) |
Definition at line 1272 of file SBValue.cpp.
References lldb_private::eAddressTypeFile, lldb_private::eAddressTypeLoad, GetSP(), LLDB_INSTRUMENT_VA, lldb::SBAddress, and lldb_private::Address::SetLoadAddress().
Referenced by LLDB_DEPRECATED_FIXME().
| size_t SBValue::GetByteSize | ( | ) |
Definition at line 159 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by Watch(), and ~SBValue().
| SBValue SBValue::GetChildAtIndex | ( | uint32_t | idx | ) |
Definition at line 563 of file SBValue.cpp.
References lldb::eNoDynamicValues, GetChildAtIndex(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBValue().
Referenced by GetChildAtIndex(), and LLDB_DEPRECATED_FIXME().
| SBValue SBValue::GetChildAtIndex | ( | uint32_t | idx, |
| lldb::DynamicValueType | use_dynamic, | ||
| bool | treat_as_array ) |
Get a child value by index from a value.
Structs, unions, classes, arrays and pointers have child values that can be access by index.
Structs and unions access child members using a zero based index for each child member. For
Classes reserve the first indexes for base classes that have members (empty base classes are omitted), and all members of the current class will then follow the base classes.
For array and pointers the behavior of the function depends on the value of the treat_as_array argument. If false, the function returns members of the array as given by the array bounds. If the value is a pointer to a simple type, the child at index zero is the only child value available. If the pointer points to an aggregate type (an array, class, union, etc.), then the pointee is transparently skipped and any children are going to be the indexes of the child values within the aggregate type. For example if we have a 'Point' type and we have a SBValue that contains a pointer to a 'Point' type, then the child at index zero will be the 'x' member, and the child at index 1 will be the 'y' member (the child at index zero won't be a 'Point' instance). If treat_as_array is true, pointer values will be used as a (C) array and and the function will create 'synthetic' child values using positive or negative indexes. In case of arrays, the function will return values which are outside of the array bounds.
If you actually need an SBValue that represents the type pointed to by a SBValue for which GetType().IsPointeeType() returns true, regardless of the pointee type, you can do that with SBValue::Dereference.
| [in] | idx | The index of the child value to get |
| [in] | use_dynamic | An enumeration that specifies whether to get dynamic values, and also if the target can be run to figure out the dynamic type of the child value. |
| [in] | treat_as_array | If true, then allow child values to be created by index for pointers and arrays for indexes that normally wouldn't be allowed. |
Definition at line 577 of file SBValue.cpp.
References GetPreferSyntheticValue(), GetSP(), LLDB_INSTRUMENT_VA, SBValue(), and SetSP().
| SBValue SBValue::GetChildMemberWithName | ( | const char * | name | ) |
Definition at line 614 of file SBValue.cpp.
References lldb::eNoDynamicValues, GetChildMemberWithName(), LLDB_INSTRUMENT_VA, m_opaque_sp, and SBValue().
Referenced by GetChildMemberWithName(), and LLDB_DEPRECATED_FIXME().
| SBValue SBValue::GetChildMemberWithName | ( | const char * | name, |
| lldb::DynamicValueType | use_dynamic ) |
Definition at line 628 of file SBValue.cpp.
References GetPreferSyntheticValue(), GetSP(), LLDB_INSTRUMENT_VA, SBValue(), and SetSP().
| lldb::SBData SBValue::GetData | ( | ) |
Get an SBData wrapping the contents of this SBValue.
This method will read the contents of this object in memory and copy them into an SBData for future use.
Definition at line 1318 of file SBValue.cpp.
References error(), GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
| lldb::SBDeclaration SBValue::GetDeclaration | ( | ) |
Definition at line 1381 of file SBValue.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBDeclaration::SetDeclaration().
Referenced by LLDB_DEPRECATED_FIXME().
| bool SBValue::GetDescription | ( | lldb::SBStream & | description | ) |
Definition at line 1173 of file SBValue.cpp.
References lldb::eDescriptionLevelFull, GetDescription(), and LLDB_INSTRUMENT_VA.
Referenced by GetDescription(), and LLDB_DEPRECATED().
| bool SBValue::GetDescription | ( | lldb::SBStream & | description, |
| lldb::DescriptionLevel | description_level ) |
Definition at line 1203 of file SBValue.cpp.
References error(), GetDumpOptions(), GetSP(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb_private::Stream::PutCString(), lldb::SBStream::ref(), and lldb_private::toString().
| const char * SBValue::GetDisplayTypeName | ( | ) |
Definition at line 148 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBValue().
| lldb::SBValue SBValue::GetDynamicValue | ( | lldb::DynamicValueType | use_dynamic | ) |
Definition at line 660 of file SBValue.cpp.
References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, SBValue(), and SetSP().
Referenced by ~SBValue().
| SBError SBValue::GetError | ( | ) |
Definition at line 100 of file SBValue.cpp.
References lldb_private::Status::AsCString(), lldb_private::Status::FromErrorStringWithFormat(), lldb_private::ValueLocker::GetError(), GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBError::SetError().
Referenced by ~SBValue().
| bool SBValue::GetExpressionPath | ( | lldb::SBStream & | description | ) |
Definition at line 1079 of file SBValue.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBStream::ref().
Referenced by LLDB_DEPRECATED().
| bool SBValue::GetExpressionPath | ( | lldb::SBStream & | description, |
| bool | qualify_cxx_base_classes ) |
Definition at line 1091 of file SBValue.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBStream::ref().
| lldb::Format SBValue::GetFormat | ( | ) |
Definition at line 1226 of file SBValue.cpp.
References lldb::eFormatDefault, GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBValue().
| lldb::SBFrame SBValue::GetFrame | ( | ) |
Definition at line 992 of file SBValue.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, SBFrame, and lldb::SBFrame::SetFrameSP().
Referenced by LLDB_DEPRECATED_FIXME().
| user_id_t SBValue::GetID | ( | ) |
Definition at line 116 of file SBValue.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and LLDB_INVALID_UID.
Referenced by ~SBValue().
| uint32_t SBValue::GetIndexOfChildWithName | ( | const char * | name | ) |
Definition at line 600 of file SBValue.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and UINT32_MAX.
Referenced by LLDB_DEPRECATED_FIXME().
| lldb::addr_t SBValue::GetLoadAddress | ( | ) |
Definition at line 1260 of file SBValue.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and LLDB_INVALID_ADDRESS.
Referenced by LLDB_DEPRECATED_FIXME(), and Watch().
| const char * SBValue::GetLocation | ( | ) |
Definition at line 279 of file SBValue.cpp.
References lldb_private::ConstString::GetCString(), GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBValue().
| const char * SBValue::GetName | ( | ) |
Definition at line 126 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
| lldb::SBValue SBValue::GetNonSyntheticValue | ( | ) |
Definition at line 685 of file SBValue.cpp.
References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, SBValue(), and SetSP().
Referenced by ~SBValue().
| uint32_t SBValue::GetNumChildren | ( | ) |
Return the number of children of this variable.
Note that for some variables this operation can be expensive. If possible, prefer calling GetNumChildren(max) with the maximum number of children you are interested in.
Definition at line 903 of file SBValue.cpp.
References GetNumChildren(), LLDB_INSTRUMENT_VA, and UINT32_MAX.
Referenced by GetNumChildren(), and LLDB_DEPRECATED_FIXME().
| uint32_t SBValue::GetNumChildren | ( | uint32_t | max | ) |
Return the numer of children of this variable, with a hint that the caller is interested in at most max children.
Use this function to avoid expensive child computations in some cases. For example, if you know you will only ever display 100 elements, calling GetNumChildren(100) can avoid enumerating all the other children. If the returned value is smaller than max, then it represents the true number of children, otherwise it indicates that their number is at least max. Do not assume the returned number will always be less than or equal to max, as the implementation may choose to return a larger (but still smaller than the actual number of children) value.
Definition at line 909 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
| const char * SBValue::GetObjectDescription | ( | ) |
Definition at line 209 of file SBValue.cpp.
References lldb_private::ConstString::AsCString(), GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBValue().
| void * SBValue::GetOpaqueType | ( | ) |
Definition at line 943 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
| lldb::SBValue SBValue::GetParent | ( | ) |
Definition at line 646 of file SBValue.cpp.
References GetSP(), lldb_private::ValueObject::GetSP(), LLDB_INSTRUMENT_VA, SBValue(), and SetSP().
Referenced by ~SBValue().
| lldb::SBData SBValue::GetPointeeData | ( | uint32_t | item_idx = 0, |
| uint32_t | item_count = 1 ) |
Get an SBData wrapping what this SBValue points to.
This method will dereference the current SBValue, if its data type is a T* or T[], and extract item_count elements of type T from it, copying their contents in an SBData.
| [in] | item_idx | The index of the first item to retrieve. For an array this is equivalent to array[item_idx], for a pointer to *(pointer + item_idx). In either case, the measurement unit for item_idx is the sizeof(T) rather than the byte |
| [in] | item_count | How many items should be copied into the output. By default only one item is copied, but more can be asked for. |
Definition at line 1299 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
| lldb::DynamicValueType SBValue::GetPreferDynamicValue | ( | ) |
Definition at line 712 of file SBValue.cpp.
References lldb::eNoDynamicValues, IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by AddressOf(), Cast(), CreateChildAtOffset(), GetValueForExpressionPath(), and ~SBValue().
| bool SBValue::GetPreferSyntheticValue | ( | ) |
Definition at line 727 of file SBValue.cpp.
References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by AddressOf(), Cast(), CreateChildAtOffset(), GetChildAtIndex(), GetChildMemberWithName(), GetValueForExpressionPath(), and ~SBValue().
| lldb::SBProcess SBValue::GetProcess | ( | ) |
Definition at line 966 of file SBValue.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBProcess::SetSP().
Referenced by LLDB_DEPRECATED_FIXME().
|
protected |
Same as the protected version of GetSP that takes a locker, except that we make the locker locally in the function.
Since the Target API mutex is recursive, and the StopLocker is a read lock, you can call this function even if you are already holding the two above-mentioned locks.
Definition at line 1018 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by AddressOf(), CanSet(), Cast(), Clone(), CreateBoolValue(), CreateChildAtOffset(), CreateValueFromAddress(), CreateValueFromData(), CreateValueFromExpression(), Dereference(), lldb::SBTypeSummary::DoesPrintValue(), EvaluateExpression(), EvaluateExpression(), GetAddress(), GetByteSize(), GetChildAtIndex(), GetChildMemberWithName(), GetData(), GetDeclaration(), GetDescription(), GetDisplayTypeName(), GetError(), GetExpressionPath(), GetExpressionPath(), GetFormat(), GetID(), GetIndexOfChildWithName(), GetLoadAddress(), GetLocation(), GetName(), GetNumChildren(), GetObjectDescription(), GetOpaqueType(), GetParent(), GetPointeeData(), GetSP(), GetSummary(), GetSummary(), GetType(), GetTypeFilter(), GetTypeFormat(), GetTypeName(), GetTypeSummary(), GetTypeSynthetic(), GetTypeSyntheticImplementation(), GetValue(), GetValueAsAddress(), GetValueAsSigned(), GetValueAsSigned(), GetValueAsUnsigned(), GetValueAsUnsigned(), GetValueDidChange(), GetValueForExpressionPath(), GetValueType(), GetVTable(), IsDynamic(), IsInScope(), IsRuntimeSupportValue(), IsSynthetic(), IsSyntheticChildrenGenerated(), lldb_private::python::SWIGBridge, MightHaveChildren(), Persist(), lldb::SBThread::ReturnFromFrame(), SetData(), SetFormat(), SetSyntheticChildrenGenerated(), SetTypeSynthetic(), and Watch().
|
protected |
Get the appropriate ValueObjectSP from this SBValue, consulting the use_dynamic and use_synthetic options passed in to SetSP when the SBValue's contents were set.
Since this often requires examining memory, and maybe even running code, it needs to acquire the Target API and Process StopLock. Those are held in an opaque class ValueLocker which is currently local to SBValue.cpp. So you don't have to get these yourself just default construct a ValueLocker, and pass it into this. If we need to make a ValueLocker and use it in some other .cpp file, we'll have to move it to ValueObject.h/cpp or somewhere else convenient. We haven't needed to so far.
| [in] | value_locker | An object that will hold the Target API, and Process RunLocks, and auto-destroy them when it goes out of scope. Currently this is only useful in SBValue.cpp. |
Definition at line 1005 of file SBValue.cpp.
References lldb_private::Status::FromErrorString(), lldb_private::ValueLocker::GetError(), lldb_private::ValueLocker::GetLockedSP(), and m_opaque_sp.
| lldb::SBValue SBValue::GetStaticValue | ( | ) |
Definition at line 672 of file SBValue.cpp.
References lldb::eNoDynamicValues, IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, SBValue(), and SetSP().
Referenced by ~SBValue().
| const char * SBValue::GetSummary | ( | ) |
Definition at line 254 of file SBValue.cpp.
References lldb_private::ConstString::GetCString(), GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by lldb::SBTarget::EvaluateExpression(), and ~SBValue().
| const char * SBValue::GetSummary | ( | lldb::SBStream & | stream, |
| lldb::SBTypeSummaryOptions & | options ) |
Definition at line 265 of file SBValue.cpp.
References lldb_private::ConstString::GetCString(), lldb::SBStream::GetData(), GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBTypeSummaryOptions::ref().
| lldb::SBValue SBValue::GetSyntheticValue | ( | ) |
Definition at line 697 of file SBValue.cpp.
References IsSynthetic(), IsValid(), LLDB_INSTRUMENT_VA, m_opaque_sp, SBValue(), and SetSP().
Referenced by ~SBValue().
| lldb::SBTarget SBValue::GetTarget | ( | ) |
Definition at line 953 of file SBValue.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, SBTarget, and lldb::SBTarget::SetSP().
Referenced by LLDB_DEPRECATED_FIXME(), and Watch().
| lldb::SBThread SBValue::GetThread | ( | ) |
Definition at line 979 of file SBValue.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, SBThread, and lldb::SBThread::SetThread().
Referenced by LLDB_DEPRECATED_FIXME().
| SBType SBValue::GetType | ( | ) |
Definition at line 225 of file SBValue.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, SBType, and lldb::SBType::SetSP().
Referenced by LLDB_DEPRECATED(), and WatchPointee().
| lldb::SBTypeFilter SBValue::GetTypeFilter | ( | ) |
Definition at line 363 of file SBValue.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBTypeFilter::SetSP().
Referenced by LLDB_DEPRECATED_FIXME().
| lldb::SBTypeFormat SBValue::GetTypeFormat | ( | ) |
Definition at line 331 of file SBValue.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBTypeFormat::SetSP().
Referenced by LLDB_DEPRECATED_FIXME().
| const char * SBValue::GetTypeName | ( | ) |
Definition at line 137 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBValue().
| lldb::SBTypeSummary SBValue::GetTypeSummary | ( | ) |
Definition at line 347 of file SBValue.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBTypeSummary::SetSP().
Referenced by LLDB_DEPRECATED_FIXME().
| lldb::SBTypeSynthetic SBValue::GetTypeSynthetic | ( | ) |
Definition at line 383 of file SBValue.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBTypeSynthetic::SetSP().
Referenced by LLDB_DEPRECATED_FIXME().
| lldb::SBScriptObject SBValue::GetTypeSyntheticImplementation | ( | ) |
This function's primary use is to ease inspecting the internal state of scripted synthetic children providers for debugging purposes.
An other alternative usecase is for parent synthetic children providers to imbue their children's synthetic children providers with additional context after creation.
Definition at line 414 of file SBValue.cpp.
References lldb::eScriptLanguageDefault, GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBScriptObject.
Referenced by LLDB_DEPRECATED_FIXME().
| const char * SBValue::GetValue | ( | ) |
Definition at line 187 of file SBValue.cpp.
References lldb_private::ConstString::GetCString(), GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by lldb::SBTarget::EvaluateExpression(), and ~SBValue().
| lldb::addr_t SBValue::GetValueAsAddress | ( | ) |
Definition at line 860 of file SBValue.cpp.
References GetSP(), LLDB_INVALID_ADDRESS, and m_opaque_sp.
Referenced by ~SBValue().
| int64_t SBValue::GetValueAsSigned | ( | int64_t | fail_value = 0 | ) |
Definition at line 838 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
| int64_t SBValue::GetValueAsSigned | ( | lldb::SBError & | error, |
| int64_t | fail_value = 0 ) |
Definition at line 798 of file SBValue.cpp.
References lldb_private::Status::AsCString(), error(), lldb_private::Status::FromErrorString(), lldb_private::Status::FromErrorStringWithFormat(), lldb_private::ValueLocker::GetError(), GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBValue().
| uint64_t SBValue::GetValueAsUnsigned | ( | lldb::SBError & | error, |
| uint64_t | fail_value = 0 ) |
Definition at line 818 of file SBValue.cpp.
References lldb_private::Status::AsCString(), error(), lldb_private::Status::FromErrorString(), lldb_private::Status::FromErrorStringWithFormat(), lldb_private::ValueLocker::GetError(), GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBValue().
| uint64_t SBValue::GetValueAsUnsigned | ( | uint64_t | fail_value = 0 | ) |
Definition at line 849 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
| bool SBValue::GetValueDidChange | ( | ) |
Definition at line 240 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBValue().
| lldb::SBValue SBValue::GetValueForExpressionPath | ( | const char * | expr_path | ) |
Definition at line 781 of file SBValue.cpp.
References GetPreferDynamicValue(), GetPreferSyntheticValue(), GetSP(), LLDB_INSTRUMENT_VA, SBValue(), and SetSP().
Referenced by LLDB_DEPRECATED_FIXME().
| ValueType SBValue::GetValueType | ( | ) |
Definition at line 197 of file SBValue.cpp.
References lldb::eValueTypeInvalid, GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBValue().
| lldb::SBValue SBValue::GetVTable | ( | ) |
If this value represents a C++ class that has a vtable, return an value that represents the virtual function table.
SBValue::GetError() will be in the success state if this value represents a C++ class with a vtable, or an appropriate error describing that the object isn't a C++ class with a vtable or not a C++ class.
SBValue::GetName() will be the demangled symbol name for the virtual function table like "vtable for <classname>".
SBValue::GetValue() will be the address of the first vtable entry if the current SBValue is a class with a vtable, or nothing the current SBValue is not a C++ class or not a C++ class that has a vtable.
SBValue::GetValueAtUnsigned(...) will return the address of the first vtable entry.
SBValue::GetLoadAddress() will return the address of the vtable pointer found in the parent SBValue.
SBValue::GetNumChildren() will return the number of virtual function pointers in the vtable, or zero on error.
SBValue::GetChildAtIndex(...) will return each virtual function pointer as a SBValue object.
The child SBValue objects will have the following values:
SBValue::GetError() will indicate success if the vtable entry was successfully read from memory, or an error if not.
SBValue::GetName() will be the vtable function index in the form "[%u]" where u is the index.
SBValue::GetValue() will be the virtual function pointer value as a string.
SBValue::GetValueAtUnsigned(...) will return the virtual function pointer value.
SBValue::GetLoadAddress() will return the address of the virtual function pointer.
SBValue::GetNumChildren() returns 0
Definition at line 1496 of file SBValue.cpp.
References GetSP(), SBValue(), and SetSP().
Referenced by LLDB_DEPRECATED().
| bool SBValue::IsDynamic | ( | ) |
Definition at line 742 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBValue().
| bool SBValue::IsInScope | ( | ) |
Definition at line 173 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by Watch(), WatchPointee(), and ~SBValue().
| bool SBValue::IsRuntimeSupportValue | ( | ) |
Definition at line 891 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
| bool SBValue::IsSynthetic | ( | ) |
Definition at line 752 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by GetSyntheticValue(), and ~SBValue().
| bool SBValue::IsSyntheticChildrenGenerated | ( | ) |
Definition at line 762 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBValue().
| bool SBValue::IsValid | ( | ) |
Definition at line 80 of file SBValue.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by GetDynamicValue(), GetNonSyntheticValue(), GetPreferDynamicValue(), GetPreferSyntheticValue(), GetStaticValue(), GetSyntheticValue(), SetPreferDynamicValue(), SetPreferSyntheticValue(), and ~SBValue().
| lldb::SBValue::LLDB_DEPRECATED | ( | "Use GetType().IsPointerType() instead" | ) |
References error(), EvaluateExpression(), GetDescription(), GetExpressionPath(), GetType(), GetVTable(), LLDB_DEPRECATED(), Persist(), SBType, SBValue(), Watch(), and WatchPointee().
Referenced by LLDB_DEPRECATED(), and LLDB_DEPRECATED_FIXME().
| lldb::SBValue::LLDB_DEPRECATED_FIXME | ( | "Use the variant that takes an SBError &" | , |
| "SetValueFromCString(const char *, SBError &)" | ) const |
References AddressOf(), CanSet(), CanSetValue(), Cast(), Clone(), CreateBoolValue(), CreateChildAtOffset(), CreateValueFromAddress(), CreateValueFromData(), CreateValueFromExpression(), Dereference(), error(), GetAddress(), GetChildAtIndex(), GetChildMemberWithName(), GetData(), GetDeclaration(), GetFrame(), GetIndexOfChildWithName(), GetLoadAddress(), GetNumChildren(), GetOpaqueType(), GetPointeeData(), GetProcess(), GetTarget(), GetThread(), GetTypeFilter(), GetTypeFormat(), GetTypeSummary(), GetTypeSynthetic(), GetTypeSyntheticImplementation(), GetValueForExpressionPath(), IsRuntimeSupportValue(), LLDB_DEPRECATED(), LLDB_DEPRECATED_FIXME(), MightHaveChildren(), SBFrame, SBTarget, SBThread, SBType, SBTypeSummary, SBValue(), SetData(), SetTypeSynthetic(), and SetValueFromCString().
Referenced by LLDB_DEPRECATED_FIXME().
| bool SBValue::MightHaveChildren | ( | ) |
Find out if a SBValue might have children.
This call is much more efficient than GetNumChildren() as it doesn't need to complete the underlying type. This is designed to be used in a UI environment in order to detect if the disclosure triangle should be displayed or not.
This function returns true for class, union, structure, pointers, references, arrays and more. Again, it does so without doing any expensive type completion.
Definition at line 879 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
|
explicit |
Definition at line 84 of file SBValue.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
| SBValue & SBValue::operator= | ( | const lldb::SBValue & | rhs | ) |
Definition at line 69 of file SBValue.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, SBValue(), and SetSP().
| lldb::SBValue SBValue::Persist | ( | ) |
Definition at line 1484 of file SBValue.cpp.
References GetSP(), LLDB_INSTRUMENT_VA, SBValue(), and SetSP().
Referenced by LLDB_DEPRECATED().
| bool SBValue::SetData | ( | lldb::SBData & | data, |
| lldb::SBError & | error ) |
Definition at line 1335 of file SBValue.cpp.
References lldb_private::Status::AsCString(), error(), lldb_private::Status::FromErrorString(), lldb_private::Status::FromErrorStringWithFormat(), lldb::SBData::get(), lldb_private::ValueLocker::GetError(), GetSP(), LLDB_INSTRUMENT_VA, and lldb_private::Status::Success().
Referenced by LLDB_DEPRECATED_FIXME().
| void SBValue::SetFormat | ( | lldb::Format | format | ) |
Definition at line 1236 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBValue().
| void SBValue::SetPreferDynamicValue | ( | lldb::DynamicValueType | use_dynamic | ) |
Definition at line 720 of file SBValue.cpp.
References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBValue().
| void SBValue::SetPreferSyntheticValue | ( | bool | use_synthetic | ) |
Definition at line 735 of file SBValue.cpp.
References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by ~SBValue().
|
protected |
Definition at line 1027 of file SBValue.cpp.
References lldb::eNoDynamicValues, m_opaque_sp, and sp.
Referenced by AddressOf(), Cast(), CreateBoolValue(), CreateChildAtOffset(), lldb::SBFrame::CreateProcessIsRunningExprEvalError(), lldb::SBTarget::CreateValueFromAddress(), CreateValueFromAddress(), lldb::SBTarget::CreateValueFromData(), CreateValueFromData(), lldb::SBTarget::CreateValueFromExpression(), CreateValueFromExpression(), lldb::SBFrame::EvaluateExpression(), lldb::SBTarget::EvaluateExpression(), EvaluateExpression(), lldb::SBFrame::FindRegister(), lldb::SBFrame::FindValue(), lldb::SBFrame::FindVariable(), GetChildAtIndex(), GetChildMemberWithName(), GetDynamicValue(), GetNonSyntheticValue(), GetParent(), GetStaticValue(), GetSyntheticValue(), GetValueForExpressionPath(), lldb::SBFrame::GetValueForVariablePath(), lldb::SBCommandReturnObject::GetValues(), lldb::SBBlock::GetVariables(), lldb::SBFrame::GetVariables(), GetVTable(), lldb_private::python::SWIGBridge, operator=(), Persist(), SBValue(), SBValue(), SetSP(), and SetSP().
|
protected |
Definition at line 1055 of file SBValue.cpp.
References lldb::eNoDynamicValues, SetSP(), and sp.
|
protected |
Definition at line 1041 of file SBValue.cpp.
|
protected |
Definition at line 1067 of file SBValue.cpp.
References m_opaque_sp, and sp.
|
protected |
Definition at line 1072 of file SBValue.cpp.
References m_opaque_sp, and sp.
|
private |
Definition at line 1025 of file SBValue.cpp.
References m_opaque_sp.
| void SBValue::SetSyntheticChildrenGenerated | ( | bool | is | ) |
Definition at line 772 of file SBValue.cpp.
References GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by ~SBValue().
| void SBValue::SetTypeSynthetic | ( | lldb::SBTypeSynthetic & | synthetic | ) |
Override the SBTypeSynthetic chosen by the DataFormatter system for this instance.
This can be used to great effect in scripted synthetic children providers where a child's underlying type can only be figured out by inspecting the containing object's other members.
Definition at line 403 of file SBValue.cpp.
References lldb::SBTypeSynthetic::GetSP(), GetSP(), and LLDB_INSTRUMENT_VA.
Referenced by LLDB_DEPRECATED_FIXME().
| bool SBValue::SetValueFromCString | ( | const char * | value_str, |
| lldb::SBError & | error ) |
Definition at line 291 of file SBValue.cpp.
References LLDB_INSTRUMENT_VA, and SetValueFromCString().
Referenced by LLDB_DEPRECATED_FIXME(), and SetValueFromCString().
| lldb::SBWatchpoint SBValue::Watch | ( | bool | resolve_location, |
| bool | read, | ||
| bool | write ) |
Definition at line 1466 of file SBValue.cpp.
References error(), LLDB_INSTRUMENT_VA, and Watch().
| lldb::SBWatchpoint SBValue::Watch | ( | bool | resolve_location, |
| bool | read, | ||
| bool | write, | ||
| SBError & | error ) |
Watch this value if it resides in memory.
Sets a watchpoint on the value.
| [in] | resolve_location | Resolve the location of this value once and watch its address. This value must currently be set to true as watching all locations of a variable or a variable path is not yet supported, though we plan to support it in the future. |
| [in] | read | Stop when this value is accessed. |
| [in] | write | Stop when this value is modified |
| [out] | error | An error object. Contains the reason if there is some failure. |
Definition at line 1395 of file SBValue.cpp.
References lldb_private::Status::AsCString(), lldb_private::Declaration::DumpStopContext(), error(), lldb_private::Status::FromErrorString(), lldb_private::Status::FromErrorStringWithFormat(), GetByteSize(), lldb_private::ValueLocker::GetError(), lldb_private::Declaration::GetFile(), GetLoadAddress(), GetSP(), lldb_private::StreamString::GetString(), GetTarget(), IsInScope(), LLDB_INSTRUMENT_VA, LLDB_INVALID_ADDRESS, LLDB_WATCH_TYPE_MODIFY, LLDB_WATCH_TYPE_READ, LLDB_WATCH_TYPE_WRITE, and lldb::SBWatchpoint::SetSP().
Referenced by LLDB_DEPRECATED(), Watch(), and WatchPointee().
| lldb::SBWatchpoint SBValue::WatchPointee | ( | bool | resolve_location, |
| bool | read, | ||
| bool | write, | ||
| SBError & | error ) |
Watch this value that this value points to in memory.
Sets a watchpoint on the value.
| [in] | resolve_location | Resolve the location of this value once and watch its address. This value must currently be set to true as watching all locations of a variable or a variable path is not yet supported, though we plan to support it in the future. |
| [in] | read | Stop when this value is accessed. |
| [in] | write | Stop when this value is modified |
| [out] | error | An error object. Contains the reason if there is some failure. |
Definition at line 1474 of file SBValue.cpp.
References Dereference(), error(), GetType(), IsInScope(), LLDB_INSTRUMENT_VA, and Watch().
Referenced by LLDB_DEPRECATED().
|
friend |
Definition at line 487 of file SBValue.h.
References GetSP(), lldb_private::python::SWIGBridge, SBValue(), SetSP(), and sp.
Referenced by lldb_private::python::SWIGBridge.
|
friend |
Definition at line 544 of file SBValue.h.
References lldb_private::ScriptInterpreterBridge.
Referenced by lldb_private::ScriptInterpreterBridge.
|
friend |
|
friend |
Definition at line 477 of file SBValue.h.
References SBCommandReturnObject.
Referenced by SBCommandReturnObject.
|
friend |
Definition at line 478 of file SBValue.h.
References SBFrame.
Referenced by GetFrame(), LLDB_DEPRECATED_FIXME(), and SBFrame.
|
friend |
|
friend |
Definition at line 480 of file SBValue.h.
References SBTarget.
Referenced by GetTarget(), LLDB_DEPRECATED_FIXME(), and SBTarget.
|
friend |
Definition at line 481 of file SBValue.h.
References SBThread.
Referenced by GetThread(), LLDB_DEPRECATED_FIXME(), and SBThread.
|
friend |
Definition at line 482 of file SBValue.h.
References SBType.
Referenced by Cast(), CreateChildAtOffset(), CreateValueFromAddress(), CreateValueFromData(), GetType(), LLDB_DEPRECATED(), LLDB_DEPRECATED_FIXME(), and SBType.
|
friend |
Definition at line 483 of file SBValue.h.
References SBTypeStaticField.
Referenced by SBTypeStaticField.
|
friend |
Definition at line 484 of file SBValue.h.
References SBTypeSummary.
Referenced by LLDB_DEPRECATED_FIXME(), and SBTypeSummary.
|
friend |
|
private |
Definition at line 548 of file SBValue.h.
Referenced by Clear(), GetChildAtIndex(), GetChildMemberWithName(), GetDescription(), GetDynamicValue(), GetFrame(), GetNonSyntheticValue(), GetPreferDynamicValue(), GetPreferSyntheticValue(), GetProcess(), GetSP(), GetStaticValue(), GetSyntheticValue(), GetTarget(), GetThread(), GetValueAsAddress(), lldb_private::ScriptInterpreterBridge::GetValueObject(), operator bool(), operator=(), SBValue(), SetPreferDynamicValue(), SetPreferSyntheticValue(), SetSP(), SetSP(), SetSP(), and SetSP().