Lines Matching defs:SBValue
1 //===-- SBValue.cpp -------------------------------------------------------===//
9 #include "lldb/API/SBValue.h"
92 // doesn't lock the target, you have no guarantee that the SBValue won't
93 // go invalid after you call this... Also, an SBValue could depend on
220 SBValue::SBValue() { LLDB_INSTRUMENT_VA(this); }
222 SBValue::SBValue(const lldb::ValueObjectSP &value_sp) {
228 SBValue::SBValue(const SBValue &rhs) {
234 SBValue &SBValue::operator=(const SBValue &rhs) {
243 SBValue::~SBValue() = default;
245 bool SBValue::IsValid() {
249 SBValue::operator bool() const {
259 void SBValue::Clear() {
265 SBError SBValue::GetError() {
281 user_id_t SBValue::GetID() {
291 const char *SBValue::GetName() {
302 const char *SBValue::GetTypeName() {
313 const char *SBValue::GetDisplayTypeName() {
324 size_t SBValue::GetByteSize() {
338 bool SBValue::IsInScope() {
352 const char *SBValue::GetValue() {
362 ValueType SBValue::GetValueType() {
374 const char *SBValue::GetObjectDescription() {
388 SBType SBValue::GetType() {
403 bool SBValue::GetValueDidChange() {
417 const char *SBValue::GetSummary() {
428 const char *SBValue::GetSummary(lldb::SBStream &stream,
442 const char *SBValue::GetLocation() {
454 bool SBValue::SetValueFromCString(const char *value_str) {
461 bool SBValue::SetValueFromCString(const char *value_str, lldb::SBError &error) {
476 lldb::SBTypeFormat SBValue::GetTypeFormat() {
492 lldb::SBTypeSummary SBValue::GetTypeSummary() {
508 lldb::SBTypeFilter SBValue::GetTypeFilter() {
528 lldb::SBTypeSynthetic SBValue::GetTypeSynthetic() {
548 lldb::SBValue SBValue::CreateChildAtOffset(const char *name, uint32_t offset,
552 lldb::SBValue sb_value;
567 lldb::SBValue SBValue::Cast(SBType type) {
570 lldb::SBValue sb_value;
580 lldb::SBValue SBValue::CreateValueFromExpression(const char *name,
589 lldb::SBValue SBValue::CreateValueFromExpression(const char *name,
594 lldb::SBValue sb_value;
609 lldb::SBValue SBValue::CreateValueFromAddress(const char *name,
614 lldb::SBValue sb_value;
629 lldb::SBValue SBValue::CreateValueFromData(const char *name, SBData data,
633 lldb::SBValue sb_value;
648 SBValue SBValue::GetChildAtIndex(uint32_t idx) {
663 SBValue SBValue::GetChildAtIndex(uint32_t idx,
680 SBValue sb_value;
686 uint32_t SBValue::GetIndexOfChildWithName(const char *name) {
698 SBValue SBValue::GetChildMemberWithName(const char *name) {
711 SBValue
712 SBValue::GetChildMemberWithName(const char *name,
724 SBValue sb_value;
730 lldb::SBValue SBValue::GetDynamicValue(lldb::DynamicValueType use_dynamic) {
733 SBValue value_sb;
742 lldb::SBValue SBValue::GetStaticValue() {
745 SBValue value_sb;
755 lldb::SBValue SBValue::GetNonSyntheticValue() {
758 SBValue value_sb;
767 lldb::SBValue SBValue::GetSyntheticValue() {
770 SBValue value_sb;
782 lldb::DynamicValueType SBValue::GetPreferDynamicValue() {
790 void SBValue::SetPreferDynamicValue(lldb::DynamicValueType use_dynamic) {
797 bool SBValue::GetPreferSyntheticValue() {
805 void SBValue::SetPreferSyntheticValue(bool use_synthetic) {
812 bool SBValue::IsDynamic() {
822 bool SBValue::IsSynthetic() {
832 bool SBValue::IsSyntheticChildrenGenerated() {
842 void SBValue::SetSyntheticChildrenGenerated(bool is) {
851 lldb::SBValue SBValue::GetValueForExpressionPath(const char *expr_path) {
862 SBValue sb_value;
868 int64_t SBValue::GetValueAsSigned(SBError &error, int64_t fail_value) {
882 error.SetErrorStringWithFormat("could not get SBValue: %s",
888 uint64_t SBValue::GetValueAsUnsigned(SBError &error, uint64_t fail_value) {
902 error.SetErrorStringWithFormat("could not get SBValue: %s",
908 int64_t SBValue::GetValueAsSigned(int64_t fail_value) {
919 uint64_t SBValue::GetValueAsUnsigned(uint64_t fail_value) {
930 lldb::addr_t SBValue::GetValueAsAddress() {
949 bool SBValue::MightHaveChildren() {
961 bool SBValue::IsRuntimeSupportValue() {
973 uint32_t SBValue::GetNumChildren() {
979 uint32_t SBValue::GetNumChildren(uint32_t max) {
992 SBValue SBValue::Dereference() {
995 SBValue sb_value;
1007 bool SBValue::TypeIsPointerType() {
1013 void *SBValue::GetOpaqueType() {
1023 lldb::SBTarget SBValue::GetTarget() {
1036 lldb::SBProcess SBValue::GetProcess() {
1049 lldb::SBThread SBValue::GetThread() {
1062 lldb::SBFrame SBValue::GetFrame() {
1075 lldb::ValueObjectSP SBValue::GetSP(ValueLocker &locker) const {
1076 // IsValid means that the SBValue has a value in it. But that's not the
1088 lldb::ValueObjectSP SBValue::GetSP() const {
1095 void SBValue::SetSP(ValueImplSP impl_sp) { m_opaque_sp = impl_sp; }
1097 void SBValue::SetSP(const lldb::ValueObjectSP &sp) {
1111 void SBValue::SetSP(const lldb::ValueObjectSP &sp,
1125 void SBValue::SetSP(const lldb::ValueObjectSP &sp, bool use_synthetic) {
1137 void SBValue::SetSP(const lldb::ValueObjectSP &sp,
1142 void SBValue::SetSP(const lldb::ValueObjectSP &sp,
1149 bool SBValue::GetExpressionPath(SBStream &description) {
1161 bool SBValue::GetExpressionPath(SBStream &description,
1174 lldb::SBValue SBValue::EvaluateExpression(const char *expr) const {
1180 return SBValue();
1184 return SBValue();
1194 lldb::SBValue
1195 SBValue::EvaluateExpression(const char *expr,
1202 lldb::SBValue SBValue::EvaluateExpression(const char *expr,
1208 return SBValue();
1215 return SBValue();
1220 return SBValue();
1228 return SBValue();
1238 SBValue result;
1243 bool SBValue::GetDescription(SBStream &description) {
1265 lldb::Format SBValue::GetFormat() {
1275 void SBValue::SetFormat(lldb::Format format) {
1284 lldb::SBValue SBValue::AddressOf() {
1287 SBValue sb_value;
1299 lldb::addr_t SBValue::GetLoadAddress() {
1311 lldb::SBAddress SBValue::GetAddress() {
1340 lldb::SBData SBValue::GetPointeeData(uint32_t item_idx, uint32_t item_count) {
1359 lldb::SBData SBValue::GetData() {
1376 bool SBValue::SetData(lldb::SBData &data, SBError &error) {
1402 "Couldn't set data: could not get SBValue: %s",
1410 lldb::SBValue SBValue::Clone(const char *new_name) {
1417 return lldb::SBValue(value_sp->Clone(ConstString(new_name)));
1419 return lldb::SBValue();
1422 lldb::SBDeclaration SBValue::GetDeclaration() {
1436 lldb::SBWatchpoint SBValue::Watch(bool resolve_location, bool read, bool write,
1442 // If the SBValue is not valid, there's no point in even trying to watch it.
1494 error.SetErrorStringWithFormat("could not get SBValue: %s",
1506 lldb::SBWatchpoint SBValue::Watch(bool resolve_location, bool read,
1514 lldb::SBWatchpoint SBValue::WatchPointee(bool resolve_location, bool read,
1524 lldb::SBValue SBValue::Persist() {
1529 SBValue persisted_sb;
1536 lldb::SBValue SBValue::GetVTable() {
1537 SBValue vtable_sb;