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()
122 ProcessSP process_sp(value_sp->GetProcessSP()); in GetSP()
132 ValueObjectSP dynamic_sp = value_sp->GetDynamicValue(m_use_dynamic); in GetSP()
134 value_sp = dynamic_sp; in GetSP()
138 ValueObjectSP synthetic_sp = value_sp->GetSyntheticValue(); in GetSP()
140 value_sp = synthetic_sp; in GetSP()
143 if (!value_sp) in GetSP()
146 value_sp->SetName(m_name); in GetSP()
148 return value_sp; in GetSP()
218 SBValue::SBValue(const lldb::ValueObjectSP &value_sp) { in SBValue() argument
219 LLDB_INSTRUMENT_VA(this, value_sp); in SBValue()
221 SetSP(value_sp); in SBValue()
267 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetError() local
268 if (value_sp) in GetError()
269 sb_error.SetError(value_sp->GetError()); in GetError()
281 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetID() local
282 if (value_sp) in GetID()
283 return value_sp->GetID(); in GetID()
292 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetName() local
293 if (value_sp) in GetName()
294 name = value_sp->GetName().GetCString(); in GetName()
304 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetTypeName() local
305 if (value_sp) { in GetTypeName()
306 name = value_sp->GetQualifiedTypeName().GetCString(); in GetTypeName()
317 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetDisplayTypeName() local
318 if (value_sp) { in GetDisplayTypeName()
319 name = value_sp->GetDisplayTypeName().GetCString(); in GetDisplayTypeName()
331 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetByteSize() local
332 if (value_sp) { in GetByteSize()
333 result = value_sp->GetByteSize().value_or(0); in GetByteSize()
345 lldb::ValueObjectSP value_sp(GetSP(locker)); in IsInScope() local
346 if (value_sp) { in IsInScope()
347 result = value_sp->IsInScope(); in IsInScope()
358 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValue() local
359 if (value_sp) { in GetValue()
360 cstr = value_sp->GetValueAsCString(); in GetValue()
371 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueType() local
372 if (value_sp) in GetValueType()
373 result = value_sp->GetValueType(); in GetValueType()
383 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetObjectDescription() local
384 if (value_sp) { in GetObjectDescription()
385 cstr = value_sp->GetObjectDescription(); in GetObjectDescription()
396 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetType() local
398 if (value_sp) { in GetType()
399 type_sp = std::make_shared<TypeImpl>(value_sp->GetTypeImpl()); in GetType()
411 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueDidChange() local
412 if (value_sp) { in GetValueDidChange()
413 if (value_sp->UpdateValueIfNeeded(false)) in GetValueDidChange()
414 result = value_sp->GetValueDidChange(); in GetValueDidChange()
425 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetSummary() local
426 if (value_sp) { in GetSummary()
427 cstr = value_sp->GetSummaryAsCString(); in GetSummary()
438 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetSummary() local
439 if (value_sp) { in GetSummary()
441 if (value_sp->GetSummaryAsCString(buffer, options.ref()) && !buffer.empty()) in GetSummary()
453 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetLocation() local
454 if (value_sp) { in GetLocation()
455 cstr = value_sp->GetLocationAsCString(); in GetLocation()
473 lldb::ValueObjectSP value_sp(GetSP(locker)); in SetValueFromCString() local
474 if (value_sp) { in SetValueFromCString()
475 success = value_sp->SetValueFromCString(value_str, error.ref()); in SetValueFromCString()
488 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetTypeFormat() local
489 if (value_sp) { in GetTypeFormat()
490 if (value_sp->UpdateValueIfNeeded(true)) { in GetTypeFormat()
491 lldb::TypeFormatImplSP format_sp = value_sp->GetValueFormat(); in GetTypeFormat()
504 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetTypeSummary() local
505 if (value_sp) { in GetTypeSummary()
506 if (value_sp->UpdateValueIfNeeded(true)) { in GetTypeSummary()
507 lldb::TypeSummaryImplSP summary_sp = value_sp->GetSummaryFormat(); in GetTypeSummary()
520 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetTypeFilter() local
521 if (value_sp) { in GetTypeFilter()
522 if (value_sp->UpdateValueIfNeeded(true)) { in GetTypeFilter()
523 lldb::SyntheticChildrenSP synthetic_sp = value_sp->GetSyntheticChildren(); in GetTypeFilter()
540 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetTypeSynthetic() local
541 if (value_sp) { in GetTypeSynthetic()
542 if (value_sp->UpdateValueIfNeeded(true)) { in GetTypeSynthetic()
543 lldb::SyntheticChildrenSP children_sp = value_sp->GetSyntheticChildren(); in GetTypeSynthetic()
561 lldb::ValueObjectSP value_sp(GetSP(locker)); in CreateChildAtOffset() local
563 if (value_sp) { in CreateChildAtOffset()
566 sb_value.SetSP(value_sp->GetSyntheticChildAtOffset( in CreateChildAtOffset()
579 lldb::ValueObjectSP value_sp(GetSP(locker)); in Cast() local
581 if (value_sp && type_sp) in Cast()
582 sb_value.SetSP(value_sp->Cast(type_sp->GetCompilerType(false)), in Cast()
603 lldb::ValueObjectSP value_sp(GetSP(locker)); in CreateValueFromExpression() local
605 if (value_sp) { in CreateValueFromExpression()
606 ExecutionContext exe_ctx(value_sp->GetExecutionContextRef()); in CreateValueFromExpression()
623 lldb::ValueObjectSP value_sp(GetSP(locker)); in CreateValueFromAddress() local
626 if (value_sp && type_impl_sp) { in CreateValueFromAddress()
628 ExecutionContext exe_ctx(value_sp->GetExecutionContextRef()); in CreateValueFromAddress()
643 lldb::ValueObjectSP value_sp(GetSP(locker)); in CreateValueFromData() local
645 if (value_sp && type_impl_sp) { in CreateValueFromData()
646 ExecutionContext exe_ctx(value_sp->GetExecutionContextRef()); in CreateValueFromData()
678 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetChildAtIndex() local
679 if (value_sp) { in GetChildAtIndex()
681 child_sp = value_sp->GetChildAtIndex(idx, can_create); in GetChildAtIndex()
683 child_sp = value_sp->GetSyntheticArrayMember(idx, can_create); in GetChildAtIndex()
698 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetIndexOfChildWithName() local
699 if (value_sp) { in GetIndexOfChildWithName()
700 idx = value_sp->GetIndexOfChildWithName(ConstString(name)); in GetIndexOfChildWithName()
727 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetChildMemberWithName() local
728 if (value_sp) { in GetChildMemberWithName()
729 child_sp = value_sp->GetChildMemberWithName(str_name, true); in GetChildMemberWithName()
809 lldb::ValueObjectSP value_sp(GetSP(locker)); in IsDynamic() local
810 if (value_sp) in IsDynamic()
811 return value_sp->IsDynamic(); in IsDynamic()
819 lldb::ValueObjectSP value_sp(GetSP(locker)); in IsSynthetic() local
820 if (value_sp) in IsSynthetic()
821 return value_sp->IsSynthetic(); in IsSynthetic()
829 lldb::ValueObjectSP value_sp(GetSP(locker)); in IsSyntheticChildrenGenerated() local
830 if (value_sp) in IsSyntheticChildrenGenerated()
831 return value_sp->IsSyntheticChildrenGenerated(); in IsSyntheticChildrenGenerated()
839 lldb::ValueObjectSP value_sp(GetSP(locker)); in SetSyntheticChildrenGenerated() local
840 if (value_sp) in SetSyntheticChildrenGenerated()
841 return value_sp->SetSyntheticChildrenGenerated(is); in SetSyntheticChildrenGenerated()
849 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueForExpressionPath() local
850 if (value_sp) { in GetValueForExpressionPath()
852 child_sp = value_sp->GetValueForExpressionPath(expr_path); in GetValueForExpressionPath()
866 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueAsSigned() local
867 if (value_sp) { in GetValueAsSigned()
870 ret_val = value_sp->GetValueAsSigned(fail_value, &success); in GetValueAsSigned()
886 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueAsUnsigned() local
887 if (value_sp) { in GetValueAsUnsigned()
890 ret_val = value_sp->GetValueAsUnsigned(fail_value, &success); in GetValueAsUnsigned()
905 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueAsSigned() local
906 if (value_sp) { in GetValueAsSigned()
907 return value_sp->GetValueAsSigned(fail_value); in GetValueAsSigned()
916 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetValueAsUnsigned() local
917 if (value_sp) { in GetValueAsUnsigned()
918 return value_sp->GetValueAsUnsigned(fail_value); in GetValueAsUnsigned()
928 lldb::ValueObjectSP value_sp(GetSP(locker)); in MightHaveChildren() local
929 if (value_sp) in MightHaveChildren()
930 has_children = value_sp->MightHaveChildren(); in MightHaveChildren()
940 lldb::ValueObjectSP value_sp(GetSP(locker)); in IsRuntimeSupportValue() local
941 if (value_sp) in IsRuntimeSupportValue()
942 is_support = value_sp->IsRuntimeSupportValue(); in IsRuntimeSupportValue()
959 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetNumChildren() local
960 if (value_sp) in GetNumChildren()
961 num_children = value_sp->GetNumChildren(max); in GetNumChildren()
971 lldb::ValueObjectSP value_sp(GetSP(locker)); in Dereference() local
972 if (value_sp) { in Dereference()
974 sb_value = value_sp->Dereference(error); in Dereference()
991 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetOpaqueType() local
992 if (value_sp) in GetOpaqueType()
993 return value_sp->GetCompilerType().GetOpaqueQualType(); in GetOpaqueType()
1122 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetExpressionPath() local
1123 if (value_sp) { in GetExpressionPath()
1124 value_sp->GetExpressionPath(description.ref()); in GetExpressionPath()
1135 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetExpressionPath() local
1136 if (value_sp) { in GetExpressionPath()
1137 value_sp->GetExpressionPath(description.ref()); in GetExpressionPath()
1147 lldb::ValueObjectSP value_sp(GetSP(locker)); in EvaluateExpression() local
1148 if (!value_sp) in EvaluateExpression()
1151 lldb::TargetSP target_sp = value_sp->GetTargetSP(); in EvaluateExpression()
1182 lldb::ValueObjectSP value_sp(GetSP(locker)); in EvaluateExpression() local
1183 if (!value_sp) { in EvaluateExpression()
1187 lldb::TargetSP target_sp = value_sp->GetTargetSP(); in EvaluateExpression()
1202 value_sp.get()); in EvaluateExpression()
1218 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetDescription() local
1219 if (value_sp) in GetDescription()
1220 value_sp->Dump(strm); in GetDescription()
1231 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetFormat() local
1232 if (value_sp) in GetFormat()
1233 return value_sp->GetFormat(); in GetFormat()
1241 lldb::ValueObjectSP value_sp(GetSP(locker)); in SetFormat() local
1242 if (value_sp) in SetFormat()
1243 value_sp->SetFormat(format); in SetFormat()
1251 lldb::ValueObjectSP value_sp(GetSP(locker)); in AddressOf() local
1252 if (value_sp) { in AddressOf()
1254 sb_value.SetSP(value_sp->AddressOf(error), GetPreferDynamicValue(), in AddressOf()
1266 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetLoadAddress() local
1267 if (value_sp) { in GetLoadAddress()
1268 TargetSP target_sp(value_sp->GetTargetSP()); in GetLoadAddress()
1272 value = value_sp->GetAddressOf(scalar_is_load_address, &addr_type); in GetLoadAddress()
1274 ModuleSP module_sp(value_sp->GetModule()); in GetLoadAddress()
1296 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetAddress() local
1297 if (value_sp) { in GetAddress()
1298 TargetSP target_sp(value_sp->GetTargetSP()); in GetAddress()
1303 value = value_sp->GetAddressOf(scalar_is_load_address, &addr_type); in GetAddress()
1305 ModuleSP module_sp(value_sp->GetModule()); in GetAddress()
1325 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetPointeeData() local
1326 if (value_sp) { in GetPointeeData()
1327 TargetSP target_sp(value_sp->GetTargetSP()); in GetPointeeData()
1330 value_sp->GetPointeeData(*data_sp, item_idx, item_count); in GetPointeeData()
1344 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetData() local
1345 if (value_sp) { in GetData()
1348 value_sp->GetData(*data_sp, error); in GetData()
1360 lldb::ValueObjectSP value_sp(GetSP(locker)); in SetData() local
1363 if (value_sp) { in SetData()
1372 value_sp->SetData(*data_extractor, set_error); in SetData()
1394 lldb::ValueObjectSP value_sp(GetSP(locker)); in Clone() local
1396 if (value_sp) in Clone()
1397 return lldb::SBValue(value_sp->Clone(ConstString(new_name))); in Clone()
1406 lldb::ValueObjectSP value_sp(GetSP(locker)); in GetDeclaration() local
1408 if (value_sp) { in GetDeclaration()
1410 if (value_sp->GetDeclaration(decl)) in GetDeclaration()
1424 lldb::ValueObjectSP value_sp(GetSP(locker)); in Watch() local
1426 if (value_sp && target_sp) { in Watch()
1449 CompilerType type(value_sp->GetCompilerType()); in Watch()
1457 if (value_sp->GetDeclaration(decl)) { in Watch()
1501 lldb::ValueObjectSP value_sp(GetSP(locker)); in Persist() local
1503 if (value_sp) { in Persist()
1504 persisted_sb.SetSP(value_sp->Persist()); in Persist()