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 return ConstString(value_sp->GetObjectDescription()).GetCString(); in GetObjectDescription()
390 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetType() local
392 if (value_sp) { in GetType()
393 type_sp = std::make_shared<TypeImpl>(value_sp->GetTypeImpl()); in GetType()
405 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueDidChange() local
406 if (value_sp) { in GetValueDidChange()
407 if (value_sp->UpdateValueIfNeeded(false)) in GetValueDidChange()
408 result = value_sp->GetValueDidChange(); in GetValueDidChange()
418 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetSummary() local
419 if (!value_sp) in GetSummary()
422 return ConstString(value_sp->GetSummaryAsCString()).GetCString(); in GetSummary()
430 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetSummary() local
431 if (value_sp) { in GetSummary()
433 if (value_sp->GetSummaryAsCString(buffer, options.ref()) && !buffer.empty()) in GetSummary()
443 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetLocation() local
444 if (!value_sp) in GetLocation()
447 return ConstString(value_sp->GetLocationAsCString()).GetCString(); in GetLocation()
463 lldb::ValueObjectSP value_sp(GetSP(locker)); in SetValueFromCString() local
464 if (value_sp) { in SetValueFromCString()
465 success = value_sp->SetValueFromCString(value_str, error.ref()); in SetValueFromCString()
478 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetTypeFormat() local
479 if (value_sp) { in GetTypeFormat()
480 if (value_sp->UpdateValueIfNeeded(true)) { in GetTypeFormat()
481 lldb::TypeFormatImplSP format_sp = value_sp->GetValueFormat(); in GetTypeFormat()
494 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetTypeSummary() local
495 if (value_sp) { in GetTypeSummary()
496 if (value_sp->UpdateValueIfNeeded(true)) { in GetTypeSummary()
497 lldb::TypeSummaryImplSP summary_sp = value_sp->GetSummaryFormat(); in GetTypeSummary()
510 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetTypeFilter() local
511 if (value_sp) { in GetTypeFilter()
512 if (value_sp->UpdateValueIfNeeded(true)) { in GetTypeFilter()
513 lldb::SyntheticChildrenSP synthetic_sp = value_sp->GetSyntheticChildren(); in GetTypeFilter()
530 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetTypeSynthetic() local
531 if (value_sp) { in GetTypeSynthetic()
532 if (value_sp->UpdateValueIfNeeded(true)) { in GetTypeSynthetic()
533 lldb::SyntheticChildrenSP children_sp = value_sp->GetSyntheticChildren(); in GetTypeSynthetic()
551 lldb::ValueObjectSP value_sp(GetSP(locker)); in CreateChildAtOffset() local
553 if (value_sp) { in CreateChildAtOffset()
556 sb_value.SetSP(value_sp->GetSyntheticChildAtOffset( in CreateChildAtOffset()
569 lldb::ValueObjectSP value_sp(GetSP(locker)); in Cast() local
571 if (value_sp && type_sp) in Cast()
572 sb_value.SetSP(value_sp->Cast(type_sp->GetCompilerType(false)), in Cast()
593 lldb::ValueObjectSP value_sp(GetSP(locker)); in CreateValueFromExpression() local
595 if (value_sp) { in CreateValueFromExpression()
596 ExecutionContext exe_ctx(value_sp->GetExecutionContextRef()); in CreateValueFromExpression()
613 lldb::ValueObjectSP value_sp(GetSP(locker)); in CreateValueFromAddress() local
616 if (value_sp && type_impl_sp) { in CreateValueFromAddress()
618 ExecutionContext exe_ctx(value_sp->GetExecutionContextRef()); in CreateValueFromAddress()
633 lldb::ValueObjectSP value_sp(GetSP(locker)); in CreateValueFromData() local
635 if (value_sp && type_impl_sp) { in CreateValueFromData()
636 ExecutionContext exe_ctx(value_sp->GetExecutionContextRef()); in CreateValueFromData()
668 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetChildAtIndex() local
669 if (value_sp) { in GetChildAtIndex()
671 child_sp = value_sp->GetChildAtIndex(idx); in GetChildAtIndex()
673 child_sp = value_sp->GetSyntheticArrayMember(idx, can_create); in GetChildAtIndex()
688 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetIndexOfChildWithName() local
689 if (value_sp) { in GetIndexOfChildWithName()
690 idx = value_sp->GetIndexOfChildWithName(name); in GetIndexOfChildWithName()
716 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetChildMemberWithName() local
717 if (value_sp) { in GetChildMemberWithName()
718 child_sp = value_sp->GetChildMemberWithName(name); in GetChildMemberWithName()
798 lldb::ValueObjectSP value_sp(GetSP(locker)); in IsDynamic() local
799 if (value_sp) in IsDynamic()
800 return value_sp->IsDynamic(); in IsDynamic()
808 lldb::ValueObjectSP value_sp(GetSP(locker)); in IsSynthetic() local
809 if (value_sp) in IsSynthetic()
810 return value_sp->IsSynthetic(); in IsSynthetic()
818 lldb::ValueObjectSP value_sp(GetSP(locker)); in IsSyntheticChildrenGenerated() local
819 if (value_sp) in IsSyntheticChildrenGenerated()
820 return value_sp->IsSyntheticChildrenGenerated(); in IsSyntheticChildrenGenerated()
828 lldb::ValueObjectSP value_sp(GetSP(locker)); in SetSyntheticChildrenGenerated() local
829 if (value_sp) in SetSyntheticChildrenGenerated()
830 return value_sp->SetSyntheticChildrenGenerated(is); in SetSyntheticChildrenGenerated()
838 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueForExpressionPath() local
839 if (value_sp) { in GetValueForExpressionPath()
841 child_sp = value_sp->GetValueForExpressionPath(expr_path); in GetValueForExpressionPath()
855 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueAsSigned() local
856 if (value_sp) { in GetValueAsSigned()
859 ret_val = value_sp->GetValueAsSigned(fail_value, &success); in GetValueAsSigned()
875 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueAsUnsigned() local
876 if (value_sp) { in GetValueAsUnsigned()
879 ret_val = value_sp->GetValueAsUnsigned(fail_value, &success); in GetValueAsUnsigned()
894 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueAsSigned() local
895 if (value_sp) { in GetValueAsSigned()
896 return value_sp->GetValueAsSigned(fail_value); in GetValueAsSigned()
905 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueAsUnsigned() local
906 if (value_sp) { in GetValueAsUnsigned()
907 return value_sp->GetValueAsUnsigned(fail_value); in GetValueAsUnsigned()
917 lldb::ValueObjectSP value_sp(GetSP(locker)); in MightHaveChildren() local
918 if (value_sp) in MightHaveChildren()
919 has_children = value_sp->MightHaveChildren(); in MightHaveChildren()
929 lldb::ValueObjectSP value_sp(GetSP(locker)); in IsRuntimeSupportValue() local
930 if (value_sp) in IsRuntimeSupportValue()
931 is_support = value_sp->IsRuntimeSupportValue(); in IsRuntimeSupportValue()
948 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetNumChildren() local
949 if (value_sp) in GetNumChildren()
950 num_children = value_sp->GetNumChildren(max); in GetNumChildren()
960 lldb::ValueObjectSP value_sp(GetSP(locker)); in Dereference() local
961 if (value_sp) { in Dereference()
963 sb_value = value_sp->Dereference(error); in Dereference()
980 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetOpaqueType() local
981 if (value_sp) in GetOpaqueType()
982 return value_sp->GetCompilerType().GetOpaqueQualType(); in GetOpaqueType()
1116 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetExpressionPath() local
1117 if (value_sp) { in GetExpressionPath()
1118 value_sp->GetExpressionPath(description.ref()); in GetExpressionPath()
1129 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetExpressionPath() local
1130 if (value_sp) { in GetExpressionPath()
1131 value_sp->GetExpressionPath(description.ref()); in GetExpressionPath()
1141 lldb::ValueObjectSP value_sp(GetSP(locker)); in EvaluateExpression() local
1142 if (!value_sp) in EvaluateExpression()
1145 lldb::TargetSP target_sp = value_sp->GetTargetSP(); in EvaluateExpression()
1176 lldb::ValueObjectSP value_sp(GetSP(locker)); in EvaluateExpression() local
1177 if (!value_sp) { in EvaluateExpression()
1181 lldb::TargetSP target_sp = value_sp->GetTargetSP(); in EvaluateExpression()
1196 value_sp.get()); in EvaluateExpression()
1212 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetDescription() local
1213 if (value_sp) { in GetDescription()
1217 value_sp->Dump(strm, options); in GetDescription()
1229 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetFormat() local
1230 if (value_sp) in GetFormat()
1231 return value_sp->GetFormat(); in GetFormat()
1239 lldb::ValueObjectSP value_sp(GetSP(locker)); in SetFormat() local
1240 if (value_sp) in SetFormat()
1241 value_sp->SetFormat(format); in SetFormat()
1249 lldb::ValueObjectSP value_sp(GetSP(locker)); in AddressOf() local
1250 if (value_sp) { in AddressOf()
1252 sb_value.SetSP(value_sp->AddressOf(error), GetPreferDynamicValue(), in AddressOf()
1264 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetLoadAddress() local
1265 if (value_sp) { in GetLoadAddress()
1266 TargetSP target_sp(value_sp->GetTargetSP()); in GetLoadAddress()
1270 value = value_sp->GetAddressOf(scalar_is_load_address, &addr_type); in GetLoadAddress()
1272 ModuleSP module_sp(value_sp->GetModule()); in GetLoadAddress()
1294 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetAddress() local
1295 if (value_sp) { in GetAddress()
1296 TargetSP target_sp(value_sp->GetTargetSP()); in GetAddress()
1301 value = value_sp->GetAddressOf(scalar_is_load_address, &addr_type); in GetAddress()
1303 ModuleSP module_sp(value_sp->GetModule()); in GetAddress()
1323 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetPointeeData() local
1324 if (value_sp) { in GetPointeeData()
1325 TargetSP target_sp(value_sp->GetTargetSP()); in GetPointeeData()
1328 value_sp->GetPointeeData(*data_sp, item_idx, item_count); in GetPointeeData()
1342 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetData() local
1343 if (value_sp) { in GetData()
1346 value_sp->GetData(*data_sp, error); in GetData()
1358 lldb::ValueObjectSP value_sp(GetSP(locker)); in SetData() local
1361 if (value_sp) { in SetData()
1370 value_sp->SetData(*data_extractor, set_error); in SetData()
1392 lldb::ValueObjectSP value_sp(GetSP(locker)); in Clone() local
1394 if (value_sp) in Clone()
1395 return lldb::SBValue(value_sp->Clone(ConstString(new_name))); in Clone()
1404 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetDeclaration() local
1406 if (value_sp) { in GetDeclaration()
1408 if (value_sp->GetDeclaration(decl)) in GetDeclaration()
1422 lldb::ValueObjectSP value_sp(GetSP(locker)); in Watch() local
1424 if (value_sp && target_sp) { in Watch()
1454 CompilerType type(value_sp->GetCompilerType()); in Watch()
1462 if (value_sp->GetDeclaration(decl)) { in Watch()
1506 lldb::ValueObjectSP value_sp(GetSP(locker)); in Persist() local
1508 if (value_sp) { in Persist()
1509 persisted_sb.SetSP(value_sp->Persist()); in Persist()
1517 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetVTable() local
1518 if (!value_sp) in GetVTable()
1521 vtable_sb.SetSP(value_sp->GetVTable()); in GetVTable()