Home | History | Annotate | Download | only in API

Lines Matching refs:value_sp

118         lldb::ValueObjectSP value_sp = m_valobj_sp;
120 Target *target = value_sp->GetTargetSP().get();
124 ProcessSP process_sp(value_sp->GetProcessSP());
130 log->Printf ("SBValue(%p)::GetSP() => error: process is running", value_sp.get());
135 if (value_sp->GetDynamicValue(m_use_dynamic))
136 value_sp = value_sp->GetDynamicValue(m_use_dynamic);
137 if (value_sp->GetSyntheticValue(m_use_synthetic))
138 value_sp = value_sp->GetSyntheticValue(m_use_synthetic);
139 if (!value_sp)
142 value_sp->SetName(m_name);
144 return value_sp;
249 SBValue::SBValue (const lldb::ValueObjectSP &value_sp)
251 SetSP(value_sp);
294 lldb::ValueObjectSP value_sp(GetSP(locker));
295 if (value_sp)
296 sb_error.SetError(value_sp->GetError());
307 lldb::ValueObjectSP value_sp(GetSP(locker));
308 if (value_sp)
309 return value_sp->GetID();
318 lldb::ValueObjectSP value_sp(GetSP(locker));
319 if (value_sp)
320 name = value_sp->GetName().GetCString();
326 log->Printf ("SBValue(%p)::GetName () => \"%s\"", value_sp.get(), name);
328 log->Printf ("SBValue(%p)::GetName () => NULL", value_sp.get());
340 lldb::ValueObjectSP value_sp(GetSP(locker));
341 if (value_sp)
343 name = value_sp->GetQualifiedTypeName().GetCString();
349 log->Printf ("SBValue(%p)::GetTypeName () => \"%s\"", value_sp.get(), name);
351 log->Printf ("SBValue(%p)::GetTypeName () => NULL", value_sp.get());
364 lldb::ValueObjectSP value_sp(GetSP(locker));
365 if (value_sp)
367 result = value_sp->GetByteSize();
371 log->Printf ("SBValue(%p)::GetByteSize () => %" PRIu64, value_sp.get(), (uint64_t)result);
382 lldb::ValueObjectSP value_sp(GetSP(locker));
383 if (value_sp)
385 result = value_sp->IsInScope ();
390 log->Printf ("SBValue(%p)::IsInScope () => %i", value_sp.get(), result);
402 lldb::ValueObjectSP value_sp(GetSP(locker));
403 if (value_sp)
405 cstr = value_sp->GetValueAsCString ();
410 log->Printf ("SBValue(%p)::GetValue() => \"%s\"", value_sp.get(), cstr);
412 log->Printf ("SBValue(%p)::GetValue() => NULL", value_sp.get());
423 lldb::ValueObjectSP value_sp(GetSP(locker));
424 if (value_sp)
425 result = value_sp->GetValueType();
432 case eValueTypeInvalid: log->Printf ("SBValue(%p)::GetValueType () => eValueTypeInvalid", value_sp.get()); break;
433 case eValueTypeVariableGlobal: log->Printf ("SBValue(%p)::GetValueType () => eValueTypeVariableGlobal", value_sp.get()); break;
434 case eValueTypeVariableStatic: log->Printf ("SBValue(%p)::GetValueType () => eValueTypeVariableStatic", value_sp.get()); break;
435 case eValueTypeVariableArgument:log->Printf ("SBValue(%p)::GetValueType () => eValueTypeVariableArgument", value_sp.get()); break;
436 case eValueTypeVariableLocal: log->Printf ("SBValue(%p)::GetValueType () => eValueTypeVariableLocal", value_sp.get()); break;
437 case eValueTypeRegister: log->Printf ("SBValue(%p)::GetValueType () => eValueTypeRegister", value_sp.get()); break;
438 case eValueTypeRegisterSet: log->Printf ("SBValue(%p)::GetValueType () => eValueTypeRegisterSet", value_sp.get()); break;
439 case eValueTypeConstResult: log->Printf ("SBValue(%p)::GetValueType () => eValueTypeConstResult", value_sp.get()); break;
451 lldb::ValueObjectSP value_sp(GetSP(locker));
452 if (value_sp)
454 cstr = value_sp->GetObjectDescription ();
459 log->Printf ("SBValue(%p)::GetObjectDescription() => \"%s\"", value_sp.get(), cstr);
461 log->Printf ("SBValue(%p)::GetObjectDescription() => NULL", value_sp.get());
472 lldb::ValueObjectSP value_sp(GetSP(locker));
474 if (value_sp)
476 type_sp.reset (new TypeImpl(value_sp->GetClangType()));
482 log->Printf ("SBValue(%p)::GetType => SBType(%p)", value_sp.get(), type_sp.get());
484 log->Printf ("SBValue(%p)::GetType => NULL", value_sp.get());
495 lldb::ValueObjectSP value_sp(GetSP(locker));
496 if (value_sp)
498 result = value_sp->GetValueDidChange ();
501 log->Printf ("SBValue(%p)::GetValueDidChange() => %i", value_sp.get(), result);
513 lldb::ValueObjectSP value_sp(GetSP(locker));
514 if (value_sp)
516 cstr = value_sp->GetSummaryAsCString();
521 log->Printf ("SBValue(%p)::GetSummary() => \"%s\"", value_sp.get(), cstr);
523 log->Printf ("SBValue(%p)::GetSummary() => NULL", value_sp.get());
535 lldb::ValueObjectSP value_sp(GetSP(locker));
536 if (value_sp)
538 cstr = value_sp->GetLocationAsCString();
543 log->Printf ("SBValue(%p)::GetLocation() => \"%s\"", value_sp.get(), cstr);
545 log->Printf ("SBValue(%p)::GetLocation() => NULL", value_sp.get());
563 lldb::ValueObjectSP value_sp(GetSP(locker));
565 if (value_sp)
567 success = value_sp->SetValueFromCString (value_str,error.ref());
573 log->Printf ("SBValue(%p)::SetValueFromCString(\"%s\") => %i", value_sp.get(), value_str, success);
583 lldb::ValueObjectSP value_sp(GetSP(locker));
584 if (value_sp)
586 if (value_sp->UpdateValueIfNeeded(true))
588 lldb::TypeFormatImplSP format_sp = value_sp->GetValueFormat();
602 lldb::ValueObjectSP value_sp(GetSP(locker));
603 if (value_sp)
605 if (value_sp->UpdateValueIfNeeded(true))
607 lldb::TypeSummaryImplSP summary_sp = value_sp->GetSummaryFormat();
621 lldb::ValueObjectSP value_sp(GetSP(locker));
622 if (value_sp)
624 if (value_sp->UpdateValueIfNeeded(true))
626 lldb::SyntheticChildrenSP synthetic_sp = value_sp->GetSyntheticChildren();
644 lldb::ValueObjectSP value_sp(GetSP(locker));
645 if (value_sp)
647 if (value_sp->UpdateValueIfNeeded(true))
649 lldb::SyntheticChildrenSP children_sp = value_sp->GetSyntheticChildren();
667 lldb::ValueObjectSP value_sp(GetSP(locker));
669 if (value_sp)
674 sb_value.SetSP(value_sp->GetSyntheticChildAtOffset(offset, type_sp->GetClangASTType(), true),GetPreferDynamicValue(),GetPreferSyntheticValue(), name);
682 value_sp.get(),
686 value_sp.get());
696 lldb::ValueObjectSP value_sp(GetSP(locker));
698 if (value_sp && type_sp)
699 sb_value.SetSP(value_sp->Cast(type_sp->GetClangASTType()),GetPreferDynamicValue(),GetPreferSyntheticValue());
717 lldb::ValueObjectSP value_sp(GetSP(locker));
719 if (value_sp)
721 ExecutionContext exe_ctx (value_sp->GetExecutionContextRef());
741 value_sp.get(),
747 value_sp.get(),
759 lldb::ValueObjectSP value_sp(GetSP(locker));
762 if (value_sp && type_impl_sp)
769 ExecutionContext exe_ctx (value_sp->GetExecutionContextRef());
792 log->Printf ("SBValue(%p)::CreateValueFromAddress => \"%s\"", value_sp.get(), new_value_sp->GetName().AsCString());
794 log->Printf ("SBValue(%p)::CreateValueFromAddress => NULL", value_sp.get());
805 lldb::ValueObjectSP value_sp(GetSP(locker));
806 if (value_sp)
808 ExecutionContext exe_ctx (value_sp->GetExecutionContextRef());
822 log->Printf ("SBValue(%p)::CreateValueFromData => \"%s\"", value_sp.get(), new_value_sp->GetName().AsCString());
824 log->Printf ("SBValue(%p)::CreateValueFromData => NULL", value_sp.get());
851 lldb::ValueObjectSP value_sp(GetSP(locker));
852 if (value_sp)
855 child_sp = value_sp->GetChildAtIndex (idx, can_create);
858 if (value_sp->IsPointerType())
860 child_sp = value_sp->GetSyntheticArrayMemberFromPointer(idx, can_create);
862 else if (value_sp->IsArrayType())
864 child_sp = value_sp->GetSyntheticArrayMemberFromArray(idx, can_create);
872 log->Printf ("SBValue(%p)::GetChildAtIndex (%u) => SBValue(%p)", value_sp.get(), idx, value_sp.get());
882 lldb::ValueObjectSP value_sp(GetSP(locker));
883 if (value_sp)
885 idx = value_sp->GetIndexOfChildWithName (ConstString(name));
891 log->Printf ("SBValue(%p)::GetIndexOfChildWithName (name=\"%s\") => NOT FOUND", value_sp.get(), name);
893 log->Printf ("SBValue(%p)::GetIndexOfChildWithName (name=\"%s\") => %u", value_sp.get(), name, idx);
920 lldb::ValueObjectSP value_sp(GetSP(locker));
921 if (value_sp)
923 child_sp = value_sp->GetChildMemberWithName (str_name, true);
930 log->Printf ("SBValue(%p)::GetChildMemberWithName (name=\"%s\") => SBValue(%p)", value_sp.get(), name, value_sp.get());
1005 lldb::ValueObjectSP value_sp(GetSP(locker));
1006 if (value_sp)
1007 return value_sp->IsDynamic();
1015 lldb::ValueObjectSP value_sp(GetSP(locker));
1016 if (value_sp)
1017 return value_sp->IsSynthetic();
1027 lldb::ValueObjectSP value_sp(GetSP(locker));
1028 if (value_sp)
1031 child_sp = value_sp->GetValueForExpressionPath(expr_path);
1038 log->Printf ("SBValue(%p)::GetValueForExpressionPath (expr_path=\"%s\") => SBValue(%p)", value_sp.get(), expr_path, value_sp.get());
1048 lldb::ValueObjectSP value_sp(GetSP(locker));
1049 if (value_sp)
1052 if (value_sp->ResolveValue (scalar))
1068 lldb::ValueObjectSP value_sp(GetSP(locker));
1069 if (value_sp)
1072 if (value_sp->ResolveValue (scalar))
1087 lldb::ValueObjectSP value_sp(GetSP(locker));
1088 if (value_sp)
1091 if (value_sp->ResolveValue (scalar))
1101 lldb::ValueObjectSP value_sp(GetSP(locker));
1102 if (value_sp)
1105 if (value_sp->ResolveValue (scalar))
1117 lldb::ValueObjectSP value_sp(GetSP(locker));
1118 if (value_sp)
1119 has_children = value_sp->MightHaveChildren();
1122 log->Printf ("SBValue(%p)::MightHaveChildren() => %i", value_sp.get(), has_children);
1133 lldb::ValueObjectSP value_sp(GetSP(locker));
1134 if (value_sp)
1135 num_children = value_sp->GetNumChildren();
1138 log->Printf ("SBValue(%p)::GetNumChildren () => %u", value_sp.get(), num_children);
1149 lldb::ValueObjectSP value_sp(GetSP(locker));
1150 if (value_sp)
1153 sb_value = value_sp->Dereference (error);
1157 log->Printf ("SBValue(%p)::Dereference () => SBValue(%p)", value_sp.get(), value_sp.get());
1168 lldb::ValueObjectSP value_sp(GetSP(locker));
1169 if (value_sp)
1170 is_ptr_type = value_sp->IsPointerType();
1174 log->Printf ("SBValue(%p)::TypeIsPointerType () => %i", value_sp.get(), is_ptr_type);
1184 lldb::ValueObjectSP value_sp(GetSP(locker));
1185 if (value_sp)
1186 return value_sp->GetClangType().GetOpaqueQualType();
1367 lldb::ValueObjectSP value_sp(GetSP(locker));
1368 if (value_sp)
1370 value_sp->GetExpressionPath (description.ref(), false);
1380 lldb::ValueObjectSP value_sp(GetSP(locker));
1381 if (value_sp)
1383 value_sp->GetExpressionPath (description.ref(), qualify_cxx_base_classes);
1395 lldb::ValueObjectSP value_sp(GetSP(locker));
1396 if (value_sp)
1398 ValueObject::DumpValueObject (strm, value_sp.get());
1410 lldb::ValueObjectSP value_sp(GetSP(locker));
1411 if (value_sp)
1412 return value_sp->GetFormat();
1420 lldb::ValueObjectSP value_sp(GetSP(locker));
1421 if (value_sp)
1422 value_sp->SetFormat(format);
1430 lldb::ValueObjectSP value_sp(GetSP(locker));
1431 if (value_sp)
1434 sb_value.SetSP(value_sp->AddressOf (error),GetPreferDynamicValue(), GetPreferSyntheticValue());
1438 log->Printf ("SBValue(%p)::AddressOf () => SBValue(%p)", value_sp.get(), value_sp.get());
1448 lldb::ValueObjectSP value_sp(GetSP(locker));
1449 if (value_sp)
1451 TargetSP target_sp (value_sp->GetTargetSP());
1456 value = value_sp->GetAddressOf(scalar_is_load_address, &addr_type);
1459 ModuleSP module_sp (value_sp->GetModule());
1475 log->Printf ("SBValue(%p)::GetLoadAddress () => (%" PRIu64 ")", value_sp.get(), value);
1485 lldb::ValueObjectSP value_sp(GetSP(locker));
1486 if (value_sp)
1488 TargetSP target_sp (value_sp->GetTargetSP());
1494 value = value_sp->GetAddressOf(scalar_is_load_address, &addr_type);
1497 ModuleSP module_sp (value_sp->GetModule());
1512 log->Printf ("SBValue(%p)::GetAddress () => (%s,%" PRIu64 ")", value_sp.get(),
1525 lldb::ValueObjectSP value_sp(GetSP(locker));
1526 if (value_sp)
1528 TargetSP target_sp (value_sp->GetTargetSP());
1532 value_sp->GetPointeeData(*data_sp, item_idx, item_count);
1539 value_sp.get(),
1553 lldb::ValueObjectSP value_sp(GetSP(locker));
1554 if (value_sp)
1557 value_sp->GetData(*data_sp);
1563 value_sp.get(),
1574 lldb::ValueObjectSP value_sp(GetSP(locker));
1577 if (value_sp)
1584 log->Printf ("SBValue(%p)::SetData() => error: no data to set", value_sp.get());
1593 value_sp->SetData(*data_extractor, set_error);
1610 value_sp.get(),
1620 lldb::ValueObjectSP value_sp(GetSP(locker));
1622 if (value_sp)
1625 if (value_sp->GetDeclaration(decl))
1638 lldb::ValueObjectSP value_sp(GetSP(locker));
1640 if (value_sp && target_sp)
1664 ClangASTType type (value_sp->GetClangType());
1672 if (value_sp->GetDeclaration (decl))
1688 log->Printf ("SBValue(%p)::Watch() => error getting SBValue: %s", value_sp.get(), locker.GetError().AsCString());
1696 log->Printf ("SBValue(%p)::Watch() => error getting SBValue: no target", value_sp.get());