Lines Matching refs:value_sp
114 lldb::ValueObjectSP value_sp = m_valobj_sp; in GetSP() local
116 Target *target = value_sp->GetTargetSP().get(); in GetSP()
118 if (value_sp->GetError().Fail()) in GetSP()
119 return value_sp; in GetSP()
126 ProcessSP process_sp(value_sp->GetProcessSP()); in GetSP()
136 ValueObjectSP dynamic_sp = value_sp->GetDynamicValue(m_use_dynamic); in GetSP()
138 value_sp = dynamic_sp; in GetSP()
142 ValueObjectSP synthetic_sp = value_sp->GetSyntheticValue(); in GetSP()
144 value_sp = synthetic_sp; in GetSP()
147 if (!value_sp) in GetSP()
150 value_sp->SetName(m_name); in GetSP()
152 return value_sp; in GetSP()
222 SBValue::SBValue(const lldb::ValueObjectSP &value_sp) { in SBValue() argument
223 LLDB_INSTRUMENT_VA(this, value_sp); in SBValue()
225 SetSP(value_sp); in SBValue()
271 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetError() local
272 if (value_sp) in GetError()
273 sb_error.SetError(value_sp->GetError()); in GetError()
285 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetID() local
286 if (value_sp) in GetID()
287 return value_sp->GetID(); in GetID()
295 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetName() local
296 if (!value_sp) in GetName()
299 return value_sp->GetName().GetCString(); in GetName()
306 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetTypeName() local
307 if (!value_sp) in GetTypeName()
310 return value_sp->GetQualifiedTypeName().GetCString(); in GetTypeName()
317 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetDisplayTypeName() local
318 if (!value_sp) in GetDisplayTypeName()
321 return value_sp->GetDisplayTypeName().GetCString(); in GetDisplayTypeName()
330 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetByteSize() local
331 if (value_sp) { in GetByteSize()
332 result = value_sp->GetByteSize().value_or(0); in GetByteSize()
344 lldb::ValueObjectSP value_sp(GetSP(locker)); in IsInScope() local
345 if (value_sp) { in IsInScope()
346 result = value_sp->IsInScope(); in IsInScope()
356 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValue() local
357 if (!value_sp) in GetValue()
359 return ConstString(value_sp->GetValueAsCString()).GetCString(); in GetValue()
367 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueType() local
368 if (value_sp) in GetValueType()
369 result = value_sp->GetValueType(); in GetValueType()
378 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetObjectDescription() local
379 if (!value_sp) in GetObjectDescription()
382 llvm::Expected<std::string> str = value_sp->GetObjectDescription(); in GetObjectDescription()
393 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetType() local
395 if (value_sp) { in GetType()
396 type_sp = std::make_shared<TypeImpl>(value_sp->GetTypeImpl()); in GetType()
408 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueDidChange() local
409 if (value_sp) { in GetValueDidChange()
410 if (value_sp->UpdateValueIfNeeded(false)) in GetValueDidChange()
411 result = value_sp->GetValueDidChange(); in GetValueDidChange()
421 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetSummary() local
422 if (!value_sp) in GetSummary()
425 return ConstString(value_sp->GetSummaryAsCString()).GetCString(); in GetSummary()
433 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetSummary() local
434 if (value_sp) { in GetSummary()
436 if (value_sp->GetSummaryAsCString(buffer, options.ref()) && !buffer.empty()) in GetSummary()
446 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetLocation() local
447 if (!value_sp) in GetLocation()
450 return ConstString(value_sp->GetLocationAsCString()).GetCString(); in GetLocation()
466 lldb::ValueObjectSP value_sp(GetSP(locker)); in SetValueFromCString() local
467 if (value_sp) { in SetValueFromCString()
468 success = value_sp->SetValueFromCString(value_str, error.ref()); in SetValueFromCString()
481 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetTypeFormat() local
482 if (value_sp) { in GetTypeFormat()
483 if (value_sp->UpdateValueIfNeeded(true)) { in GetTypeFormat()
484 lldb::TypeFormatImplSP format_sp = value_sp->GetValueFormat(); in GetTypeFormat()
497 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetTypeSummary() local
498 if (value_sp) { in GetTypeSummary()
499 if (value_sp->UpdateValueIfNeeded(true)) { in GetTypeSummary()
500 lldb::TypeSummaryImplSP summary_sp = value_sp->GetSummaryFormat(); in GetTypeSummary()
513 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetTypeFilter() local
514 if (value_sp) { in GetTypeFilter()
515 if (value_sp->UpdateValueIfNeeded(true)) { in GetTypeFilter()
516 lldb::SyntheticChildrenSP synthetic_sp = value_sp->GetSyntheticChildren(); in GetTypeFilter()
533 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetTypeSynthetic() local
534 if (value_sp) { in GetTypeSynthetic()
535 if (value_sp->UpdateValueIfNeeded(true)) { in GetTypeSynthetic()
536 lldb::SyntheticChildrenSP children_sp = value_sp->GetSyntheticChildren(); in GetTypeSynthetic()
554 lldb::ValueObjectSP value_sp(GetSP(locker)); in CreateChildAtOffset() local
556 if (value_sp) { in CreateChildAtOffset()
559 sb_value.SetSP(value_sp->GetSyntheticChildAtOffset( in CreateChildAtOffset()
572 lldb::ValueObjectSP value_sp(GetSP(locker)); in Cast() local
574 if (value_sp && type_sp) in Cast()
575 sb_value.SetSP(value_sp->Cast(type_sp->GetCompilerType(false)), in Cast()
596 lldb::ValueObjectSP value_sp(GetSP(locker)); in CreateValueFromExpression() local
598 if (value_sp) { in CreateValueFromExpression()
599 ExecutionContext exe_ctx(value_sp->GetExecutionContextRef()); in CreateValueFromExpression()
616 lldb::ValueObjectSP value_sp(GetSP(locker)); in CreateValueFromAddress() local
619 if (value_sp && type_impl_sp) { in CreateValueFromAddress()
621 ExecutionContext exe_ctx(value_sp->GetExecutionContextRef()); in CreateValueFromAddress()
636 lldb::ValueObjectSP value_sp(GetSP(locker)); in CreateValueFromData() local
638 if (value_sp && type_impl_sp) { in CreateValueFromData()
639 ExecutionContext exe_ctx(value_sp->GetExecutionContextRef()); in CreateValueFromData()
671 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetChildAtIndex() local
672 if (value_sp) { in GetChildAtIndex()
674 child_sp = value_sp->GetChildAtIndex(idx); in GetChildAtIndex()
676 child_sp = value_sp->GetSyntheticArrayMember(idx, can_create); in GetChildAtIndex()
691 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetIndexOfChildWithName() local
692 if (value_sp) { in GetIndexOfChildWithName()
693 idx = value_sp->GetIndexOfChildWithName(name); in GetIndexOfChildWithName()
719 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetChildMemberWithName() local
720 if (value_sp) { in GetChildMemberWithName()
721 child_sp = value_sp->GetChildMemberWithName(name); in GetChildMemberWithName()
816 lldb::ValueObjectSP value_sp(GetSP(locker)); in IsDynamic() local
817 if (value_sp) in IsDynamic()
818 return value_sp->IsDynamic(); in IsDynamic()
826 lldb::ValueObjectSP value_sp(GetSP(locker)); in IsSynthetic() local
827 if (value_sp) in IsSynthetic()
828 return value_sp->IsSynthetic(); in IsSynthetic()
836 lldb::ValueObjectSP value_sp(GetSP(locker)); in IsSyntheticChildrenGenerated() local
837 if (value_sp) in IsSyntheticChildrenGenerated()
838 return value_sp->IsSyntheticChildrenGenerated(); in IsSyntheticChildrenGenerated()
846 lldb::ValueObjectSP value_sp(GetSP(locker)); in SetSyntheticChildrenGenerated() local
847 if (value_sp) in SetSyntheticChildrenGenerated()
848 return value_sp->SetSyntheticChildrenGenerated(is); in SetSyntheticChildrenGenerated()
856 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueForExpressionPath() local
857 if (value_sp) { in GetValueForExpressionPath()
859 child_sp = value_sp->GetValueForExpressionPath(expr_path); in GetValueForExpressionPath()
873 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueAsSigned() local
874 if (value_sp) { in GetValueAsSigned()
877 ret_val = value_sp->GetValueAsSigned(fail_value, &success); in GetValueAsSigned()
893 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueAsUnsigned() local
894 if (value_sp) { in GetValueAsUnsigned()
897 ret_val = value_sp->GetValueAsUnsigned(fail_value, &success); in GetValueAsUnsigned()
912 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueAsSigned() local
913 if (value_sp) { in GetValueAsSigned()
914 return value_sp->GetValueAsSigned(fail_value); in GetValueAsSigned()
923 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueAsUnsigned() local
924 if (value_sp) { in GetValueAsUnsigned()
925 return value_sp->GetValueAsUnsigned(fail_value); in GetValueAsUnsigned()
933 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueAsAddress() local
934 if (value_sp) { in GetValueAsAddress()
937 ret_val = value_sp->GetValueAsUnsigned(fail_value, &success); in GetValueAsAddress()
954 lldb::ValueObjectSP value_sp(GetSP(locker)); in MightHaveChildren() local
955 if (value_sp) in MightHaveChildren()
956 has_children = value_sp->MightHaveChildren(); in MightHaveChildren()
966 lldb::ValueObjectSP value_sp(GetSP(locker)); in IsRuntimeSupportValue() local
967 if (value_sp) in IsRuntimeSupportValue()
968 is_support = value_sp->IsRuntimeSupportValue(); in IsRuntimeSupportValue()
985 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetNumChildren() local
986 if (value_sp) in GetNumChildren()
987 num_children = value_sp->GetNumChildrenIgnoringErrors(max); in GetNumChildren()
997 lldb::ValueObjectSP value_sp(GetSP(locker)); in Dereference() local
998 if (value_sp) { in Dereference()
1000 sb_value = value_sp->Dereference(error); in Dereference()
1017 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetOpaqueType() local
1018 if (value_sp) in GetOpaqueType()
1019 return value_sp->GetCompilerType().GetOpaqueQualType(); in GetOpaqueType()
1153 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetExpressionPath() local
1154 if (value_sp) { in GetExpressionPath()
1155 value_sp->GetExpressionPath(description.ref()); in GetExpressionPath()
1166 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetExpressionPath() local
1167 if (value_sp) { in GetExpressionPath()
1168 value_sp->GetExpressionPath(description.ref()); in GetExpressionPath()
1178 lldb::ValueObjectSP value_sp(GetSP(locker)); in EvaluateExpression() local
1179 if (!value_sp) in EvaluateExpression()
1182 lldb::TargetSP target_sp = value_sp->GetTargetSP(); in EvaluateExpression()
1213 lldb::ValueObjectSP value_sp(GetSP(locker)); in EvaluateExpression() local
1214 if (!value_sp) { in EvaluateExpression()
1218 lldb::TargetSP target_sp = value_sp->GetTargetSP(); in EvaluateExpression()
1233 value_sp.get()); in EvaluateExpression()
1249 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetDescription() local
1250 if (value_sp) { in GetDescription()
1254 if (llvm::Error error = value_sp->Dump(strm, options)) { in GetDescription()
1269 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetFormat() local
1270 if (value_sp) in GetFormat()
1271 return value_sp->GetFormat(); in GetFormat()
1279 lldb::ValueObjectSP value_sp(GetSP(locker)); in SetFormat() local
1280 if (value_sp) in SetFormat()
1281 value_sp->SetFormat(format); in SetFormat()
1289 lldb::ValueObjectSP value_sp(GetSP(locker)); in AddressOf() local
1290 if (value_sp) { in AddressOf()
1292 sb_value.SetSP(value_sp->AddressOf(error), GetPreferDynamicValue(), in AddressOf()
1304 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetLoadAddress() local
1305 if (value_sp) in GetLoadAddress()
1306 return value_sp->GetLoadAddress(); in GetLoadAddress()
1316 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetAddress() local
1317 if (value_sp) { in GetAddress()
1318 TargetSP target_sp(value_sp->GetTargetSP()); in GetAddress()
1323 value = value_sp->GetAddressOf(scalar_is_load_address, &addr_type); in GetAddress()
1325 ModuleSP module_sp(value_sp->GetModule()); in GetAddress()
1345 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetPointeeData() local
1346 if (value_sp) { in GetPointeeData()
1347 TargetSP target_sp(value_sp->GetTargetSP()); in GetPointeeData()
1350 value_sp->GetPointeeData(*data_sp, item_idx, item_count); in GetPointeeData()
1364 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetData() local
1365 if (value_sp) { in GetData()
1368 value_sp->GetData(*data_sp, error); in GetData()
1380 lldb::ValueObjectSP value_sp(GetSP(locker)); in SetData() local
1383 if (value_sp) { in SetData()
1392 value_sp->SetData(*data_extractor, set_error); in SetData()
1414 lldb::ValueObjectSP value_sp(GetSP(locker)); in Clone() local
1416 if (value_sp) in Clone()
1417 return lldb::SBValue(value_sp->Clone(ConstString(new_name))); in Clone()
1426 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetDeclaration() local
1428 if (value_sp) { in GetDeclaration()
1430 if (value_sp->GetDeclaration(decl)) in GetDeclaration()
1444 lldb::ValueObjectSP value_sp(GetSP(locker)); in Watch() local
1446 if (value_sp && target_sp) { in Watch()
1476 CompilerType type(value_sp->GetCompilerType()); in Watch()
1484 if (value_sp->GetDeclaration(decl)) { in Watch()
1528 lldb::ValueObjectSP value_sp(GetSP(locker)); in Persist() local
1530 if (value_sp) { in Persist()
1531 persisted_sb.SetSP(value_sp->Persist()); in Persist()
1539 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetVTable() local
1540 if (!value_sp) in GetVTable()
1543 vtable_sb.SetSP(value_sp->GetVTable()); in GetVTable()