Lines Matching refs:error
416 static ObjPtr<mirror::Array> DecodeNonNullArray(JDWP::RefTypeId id, JDWP::JdwpError* error) in DecodeNonNullArray() argument
418 ObjPtr<mirror::Object> o = Dbg::GetObjectRegistry()->Get<mirror::Object*>(id, error); in DecodeNonNullArray()
420 *error = JDWP::ERR_INVALID_OBJECT; in DecodeNonNullArray()
424 *error = JDWP::ERR_INVALID_ARRAY; in DecodeNonNullArray()
427 *error = JDWP::ERR_NONE; in DecodeNonNullArray()
431 static ObjPtr<mirror::Class> DecodeClass(JDWP::RefTypeId id, JDWP::JdwpError* error) in DecodeClass() argument
433 ObjPtr<mirror::Object> o = Dbg::GetObjectRegistry()->Get<mirror::Object*>(id, error); in DecodeClass()
435 *error = JDWP::ERR_INVALID_OBJECT; in DecodeClass()
439 *error = JDWP::ERR_INVALID_CLASS; in DecodeClass()
442 *error = JDWP::ERR_NONE; in DecodeClass()
447 JDWP::JdwpError* error) in DecodeThread() argument
451 Dbg::GetObjectRegistry()->Get<mirror::Object*>(thread_id, error); in DecodeThread()
454 *error = JDWP::ERR_INVALID_OBJECT; in DecodeThread()
462 *error = JDWP::ERR_INVALID_THREAD; in DecodeThread()
470 *error = (thread == nullptr) ? JDWP::ERR_THREAD_NOT_ALIVE : JDWP::ERR_NONE; in DecodeThread()
768 JDWP::JdwpError error; in GetClassName() local
769 ObjPtr<mirror::Object> o = gRegistry->Get<mirror::Object*>(class_id, &error); in GetClassName()
771 if (error == JDWP::ERR_NONE) { in GetClassName()
819 JDWP::JdwpError error; in GetClassLoader() local
820 ObjPtr<mirror::Class> c = DecodeClass(id, &error); in GetClassLoader()
822 return error; in GetClassLoader()
829 JDWP::JdwpError error; in GetModifiers() local
830 ObjPtr<mirror::Class> c = DecodeClass(id, &error); in GetModifiers()
832 return error; in GetModifiers()
850 JDWP::JdwpError error; in GetMonitorInfo() local
853 Handle<mirror::Object> o = hs.NewHandle(gRegistry->Get<mirror::Object*>(object_id, &error)); in GetMonitorInfo()
916 JDWP::JdwpError error; in GetOwnedMonitors() local
917 Thread* thread = DecodeThread(soa, thread_id, &error); in GetOwnedMonitors()
919 return error; in GetOwnedMonitors()
934 JDWP::JdwpError error; in GetContendedMonitor() local
935 Thread* thread = DecodeThread(soa, thread_id, &error); in GetContendedMonitor()
937 return error; in GetContendedMonitor()
957 JDWP::JdwpError error; in GetInstanceCounts() local
958 ObjPtr<mirror::Class> c = DecodeClass(class_ids[i], &error); in GetInstanceCounts()
960 return error; in GetInstanceCounts()
974 JDWP::JdwpError error; in GetInstances() local
975 ObjPtr<mirror::Class> c = DecodeClass(class_id, &error); in GetInstances()
977 return error; in GetInstances()
996 JDWP::JdwpError error; in GetReferringObjects() local
997 ObjPtr<mirror::Object> o = gRegistry->Get<mirror::Object*>(object_id, &error); in GetReferringObjects()
1011 JDWP::JdwpError error; in DisableCollection() local
1012 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error); in DisableCollection()
1021 JDWP::JdwpError error; in EnableCollection() local
1022 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error); in EnableCollection()
1042 JDWP::JdwpError error; in IsCollected() local
1043 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error); in IsCollected()
1066 JDWP::JdwpError error; in GetReflectedType() local
1067 ObjPtr<mirror::Class> c = DecodeClass(class_id, &error); in GetReflectedType()
1069 return error; in GetReflectedType()
1103 JDWP::JdwpError error; in GetClassInfo() local
1104 ObjPtr<mirror::Class> c = DecodeClass(class_id, &error); in GetClassInfo()
1106 return error; in GetClassInfo()
1138 JDWP::JdwpError error; in GetReferenceType() local
1139 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error); in GetReferenceType()
1154 JDWP::JdwpError error; in GetSignature() local
1155 ObjPtr<mirror::Class> c = DecodeClass(class_id, &error); in GetSignature()
1157 return error; in GetSignature()
1166 JDWP::JdwpError error; in GetSourceDebugExtension() local
1167 ObjPtr<mirror::Class> c = DecodeClass(class_id, &error); in GetSourceDebugExtension()
1169 return error; in GetSourceDebugExtension()
1182 JDWP::JdwpError error; in GetSourceFile() local
1183 ObjPtr<mirror::Class> c = DecodeClass(class_id, &error); in GetSourceFile()
1185 return error; in GetSourceFile()
1197 JDWP::JdwpError error; in GetObjectTag() local
1198 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error); in GetObjectTag()
1199 if (error != JDWP::ERR_NONE) { in GetObjectTag()
1201 return error; in GetObjectTag()
1238 JDWP::JdwpError error; in GetArrayLength() local
1239 ObjPtr<mirror::Array> a = DecodeNonNullArray(array_id, &error); in GetArrayLength()
1241 return error; in GetArrayLength()
1251 JDWP::JdwpError error; in OutputArray() local
1252 ObjPtr<mirror::Array> a = DecodeNonNullArray(array_id, &error); in OutputArray()
1254 return error; in OutputArray()
1310 JDWP::JdwpError error; in SetArrayElements() local
1311 ObjPtr<mirror::Array> dst = DecodeNonNullArray(array_id, &error); in SetArrayElements()
1313 return error; in SetArrayElements()
1337 ObjPtr<mirror::Object> o = gRegistry->Get<mirror::Object*>(id, &error); in SetArrayElements()
1338 if (error != JDWP::ERR_NONE) { in SetArrayElements()
1339 return error; in SetArrayElements()
1367 JDWP::JdwpError error; in CreateObject() local
1368 ObjPtr<mirror::Class> c = DecodeClass(class_id, &error); in CreateObject()
1371 return error; in CreateObject()
1398 JDWP::JdwpError error; in CreateArrayObject() local
1399 ObjPtr<mirror::Class> c = DecodeClass(array_class_id, &error); in CreateArrayObject()
1402 return error; in CreateArrayObject()
1441 JDWP::JdwpError error; in MatchThread() local
1443 expected_thread_id, &error); in MatchThread()
1460 JDWP::JdwpError error; in MatchType() local
1461 ObjPtr<mirror::Class> expected_class = DecodeClass(class_id, &error); in MatchType()
1476 JDWP::JdwpError error; in MatchInstance() local
1477 mirror::Object* modifier_instance = gRegistry->Get<mirror::Object*>(expected_instance_id, &error); in MatchInstance()
1568 static uint16_t DemangleSlot(uint16_t slot, ArtMethod* m, JDWP::JdwpError* error) in DemangleSlot() argument
1578 *error = JDWP::ERR_NONE; in DemangleSlot()
1585 *error = JDWP::ERR_NONE; in DemangleSlot()
1592 *error = JDWP::ERR_INVALID_SLOT; in DemangleSlot()
1598 JDWP::JdwpError error; in OutputDeclaredFields() local
1599 ObjPtr<mirror::Class> c = DecodeClass(class_id, &error); in OutputDeclaredFields()
1601 return error; in OutputDeclaredFields()
1626 JDWP::JdwpError error; in OutputDeclaredMethods() local
1627 ObjPtr<mirror::Class> c = DecodeClass(class_id, &error); in OutputDeclaredMethods()
1629 return error; in OutputDeclaredMethods()
1651 JDWP::JdwpError error; in OutputDeclaredInterfaces() local
1653 ObjPtr<mirror::Class> c = DecodeClass(class_id, &error); in OutputDeclaredInterfaces()
1655 return error; in OutputDeclaredInterfaces()
1834 JDWP::JdwpError error; in GetFieldValueImpl() local
1835 ObjPtr<mirror::Class> c = DecodeClass(ref_type_id, &error); in GetFieldValueImpl()
1837 return error; in GetFieldValueImpl()
1843 o(hs.NewHandle(Dbg::GetObjectRegistry()->Get<mirror::Object*>(object_id, &error))); in GetFieldValueImpl()
1844 if ((!is_static && o == nullptr) || error != JDWP::ERR_NONE) { in GetFieldValueImpl()
1941 JDWP::JdwpError error; in SetArtFieldValue() local
1942 mirror::Object* v = Dbg::GetObjectRegistry()->Get<mirror::Object*>(value, &error); in SetArtFieldValue()
1943 if (error != JDWP::ERR_NONE) { in SetArtFieldValue()
1973 JDWP::JdwpError error; in SetFieldValueImpl() local
1977 o(hs.NewHandle(Dbg::GetObjectRegistry()->Get<mirror::Object*>(object_id, &error))); in SetFieldValueImpl()
1978 if ((!is_static && o == nullptr) || error != JDWP::ERR_NONE) { in SetFieldValueImpl()
2018 JDWP::JdwpError error; in StringToUtf8() local
2019 mirror::Object* obj = gRegistry->Get<mirror::Object*>(string_id, &error); in StringToUtf8()
2020 if (error != JDWP::ERR_NONE) { in StringToUtf8()
2021 return error; in StringToUtf8()
2063 JDWP::JdwpError error; in GetThreadName() local
2064 DecodeThread(soa, thread_id, &error); in GetThreadName()
2065 if (error != JDWP::ERR_NONE && error != JDWP::ERR_THREAD_NOT_ALIVE) { in GetThreadName()
2066 return error; in GetThreadName()
2070 mirror::Object* thread_object = gRegistry->Get<mirror::Object*>(thread_id, &error); in GetThreadName()
2071 CHECK(thread_object != nullptr) << error; in GetThreadName()
2083 JDWP::JdwpError error; in GetThreadGroup() local
2084 mirror::Object* thread_object = gRegistry->Get<mirror::Object*>(thread_id, &error); in GetThreadGroup()
2085 if (error != JDWP::ERR_NONE) { in GetThreadGroup()
2090 DecodeThread(soa, thread_id, &error); in GetThreadGroup()
2091 if (error == JDWP::ERR_THREAD_NOT_ALIVE) { in GetThreadGroup()
2094 error = JDWP::ERR_NONE; in GetThreadGroup()
2095 } else if (error == JDWP::ERR_NONE) { in GetThreadGroup()
2105 return error; in GetThreadGroup()
2109 JDWP::ObjectId thread_group_id, JDWP::JdwpError* error) in DecodeThreadGroup() argument
2112 error); in DecodeThreadGroup()
2113 if (*error != JDWP::ERR_NONE) { in DecodeThreadGroup()
2117 *error = JDWP::ERR_INVALID_OBJECT; in DecodeThreadGroup()
2125 *error = JDWP::ERR_INVALID_THREAD_GROUP; in DecodeThreadGroup()
2128 *error = JDWP::ERR_NONE; in DecodeThreadGroup()
2134 JDWP::JdwpError error; in GetThreadGroupName() local
2135 mirror::Object* thread_group = DecodeThreadGroup(soa, thread_group_id, &error); in GetThreadGroupName()
2136 if (error != JDWP::ERR_NONE) { in GetThreadGroupName()
2137 return error; in GetThreadGroupName()
2151 JDWP::JdwpError error; in GetThreadGroupParent() local
2152 mirror::Object* thread_group = DecodeThreadGroup(soa, thread_group_id, &error); in GetThreadGroupParent()
2153 if (error != JDWP::ERR_NONE) { in GetThreadGroupParent()
2154 return error; in GetThreadGroupParent()
2201 JDWP::JdwpError error; in GetThreadGroupChildren() local
2202 mirror::Object* thread_group = DecodeThreadGroup(soa, thread_group_id, &error); in GetThreadGroupChildren()
2203 if (error != JDWP::ERR_NONE) { in GetThreadGroupChildren()
2204 return error; in GetThreadGroupChildren()
2284 JDWP::JdwpError error; in GetThreadStatus() local
2285 Thread* thread = DecodeThread(soa, thread_id, &error); in GetThreadStatus()
2286 if (error != JDWP::ERR_NONE) { in GetThreadStatus()
2287 if (error == JDWP::ERR_THREAD_NOT_ALIVE) { in GetThreadStatus()
2291 return error; in GetThreadStatus()
2304 JDWP::JdwpError error; in GetThreadDebugSuspendCount() local
2305 Thread* thread = DecodeThread(soa, thread_id, &error); in GetThreadDebugSuspendCount()
2306 if (error != JDWP::ERR_NONE) { in GetThreadDebugSuspendCount()
2307 return error; in GetThreadDebugSuspendCount()
2316 JDWP::JdwpError error; in Interrupt() local
2317 Thread* thread = DecodeThread(soa, thread_id, &error); in Interrupt()
2318 if (error != JDWP::ERR_NONE) { in Interrupt()
2319 return error; in Interrupt()
2387 JDWP::JdwpError error; in GetThreadFrameCount() local
2389 Thread* thread = DecodeThread(soa, thread_id, &error); in GetThreadFrameCount()
2390 if (error != JDWP::ERR_NONE) { in GetThreadFrameCount()
2391 return error; in GetThreadFrameCount()
2405 JDWP::JdwpError error; in GetThreadFrames() local
2406 Thread* thread = DecodeThread(soa, thread_id, &error); in GetThreadFrames()
2407 if (error != JDWP::ERR_NONE) { in GetThreadFrames()
2408 return error; in GetThreadFrames()
2470 JDWP::JdwpError error; in SuspendThread() local
2471 peer.reset(soa.AddLocalReference<jobject>(gRegistry->Get<mirror::Object*>(thread_id, &error))); in SuspendThread()
2494 JDWP::JdwpError error; in ResumeThread() local
2495 mirror::Object* peer = gRegistry->Get<mirror::Object*>(thread_id, &error); in ResumeThread()
2496 CHECK(peer != nullptr) << error; in ResumeThread()
2524 JDWP::JdwpError error; in GetThisObject() local
2525 Thread* thread = DecodeThread(soa, thread_id, &error); in GetThisObject()
2526 if (error != JDWP::ERR_NONE) { in GetThisObject()
2527 return error; in GetThisObject()
2583 JDWP::JdwpError error; in GetLocalValues() local
2584 Thread* thread = DecodeThread(soa, thread_id, &error); in GetLocalValues()
2585 if (error != JDWP::ERR_NONE) { in GetLocalValues()
2586 return error; in GetLocalValues()
2607 error = Dbg::GetLocalValue(*stack_visitor, soa, slot, reqSigByte, ptr, width); in GetLocalValues()
2608 if (error != JDWP::ERR_NONE) { in GetLocalValues()
2609 return error; in GetLocalValues()
2635 JDWP::JdwpError error = JDWP::ERR_NONE; in GetLocalValue() local
2636 uint16_t vreg = DemangleSlot(slot, m, &error); in GetLocalValue()
2637 if (error != JDWP::ERR_NONE) { in GetLocalValue()
2638 return error; in GetLocalValue()
2752 JDWP::JdwpError error; in SetLocalValues() local
2753 Thread* thread = DecodeThread(soa, thread_id, &error); in SetLocalValues()
2754 if (error != JDWP::ERR_NONE) { in SetLocalValues()
2755 return error; in SetLocalValues()
2774 error = Dbg::SetLocalValue(thread, *stack_visitor, slot, sigByte, value, width); in SetLocalValues()
2775 if (error != JDWP::ERR_NONE) { in SetLocalValues()
2776 return error; in SetLocalValues()
2796 JDWP::JdwpError error = JDWP::ERR_NONE; in SetLocalValue() local
2797 uint16_t vreg = DemangleSlot(slot, m, &error); in SetLocalValue()
2798 if (error != JDWP::ERR_NONE) { in SetLocalValue()
2799 return error; in SetLocalValue()
2838 &error); in SetLocalValue()
2839 if (error != JDWP::ERR_NONE) { in SetLocalValue()
3801 JDWP::JdwpError error; in UnconfigureStep() local
3802 Thread* thread = DecodeThread(soa, thread_id, &error); in UnconfigureStep()
3803 if (error == JDWP::ERR_NONE) { in UnconfigureStep()
3850 JDWP::JdwpError error; in PrepareInvokeMethod() local
3851 targetThread = DecodeThread(soa, thread_id, &error); in PrepareInvokeMethod()
3852 if (error != JDWP::ERR_NONE) { in PrepareInvokeMethod()
3854 return error; in PrepareInvokeMethod()
3896 ObjPtr<mirror::Object> receiver = gRegistry->Get<mirror::Object*>(object_id, &error); in PrepareInvokeMethod()
3897 if (error != JDWP::ERR_NONE) { in PrepareInvokeMethod()
3901 gRegistry->Get<mirror::Object*>(thread_id, &error); in PrepareInvokeMethod()
3902 if (error != JDWP::ERR_NONE) { in PrepareInvokeMethod()
3906 ObjPtr<mirror::Class> c = DecodeClass(class_id, &error); in PrepareInvokeMethod()
3908 return error; in PrepareInvokeMethod()
3946 mirror::Object* argument = gRegistry->Get<mirror::Object*>(arg_values[i], &error); in PrepareInvokeMethod()
3947 if (error != JDWP::ERR_NONE) { in PrepareInvokeMethod()
4136 JDWP::JdwpError error = Dbg::StringToUtf8(result_value, &result_string); in ExecuteMethodWithoutPendingException() local
4137 CHECK_EQ(error, JDWP::ERR_NONE); in ExecuteMethodWithoutPendingException()