• Home
  • Raw
  • Download

Lines Matching refs:error

368 static mirror::Array* DecodeNonNullArray(JDWP::RefTypeId id, JDWP::JdwpError* error)  in DecodeNonNullArray()  argument
370 mirror::Object* o = Dbg::GetObjectRegistry()->Get<mirror::Object*>(id, error); in DecodeNonNullArray()
372 *error = JDWP::ERR_INVALID_OBJECT; in DecodeNonNullArray()
376 *error = JDWP::ERR_INVALID_ARRAY; in DecodeNonNullArray()
379 *error = JDWP::ERR_NONE; in DecodeNonNullArray()
383 static mirror::Class* DecodeClass(JDWP::RefTypeId id, JDWP::JdwpError* error) in DecodeClass() argument
385 mirror::Object* o = Dbg::GetObjectRegistry()->Get<mirror::Object*>(id, error); in DecodeClass()
387 *error = JDWP::ERR_INVALID_OBJECT; in DecodeClass()
391 *error = JDWP::ERR_INVALID_CLASS; in DecodeClass()
394 *error = JDWP::ERR_NONE; in DecodeClass()
399 JDWP::JdwpError* error) in DecodeThread() argument
402 mirror::Object* thread_peer = Dbg::GetObjectRegistry()->Get<mirror::Object*>(thread_id, error); in DecodeThread()
405 *error = JDWP::ERR_INVALID_OBJECT; in DecodeThread()
413 *error = JDWP::ERR_INVALID_THREAD; in DecodeThread()
421 *error = (thread == nullptr) ? JDWP::ERR_THREAD_NOT_ALIVE : JDWP::ERR_NONE; in DecodeThread()
709 JDWP::JdwpError error; in GetClassName() local
710 mirror::Object* o = gRegistry->Get<mirror::Object*>(class_id, &error); in GetClassName()
712 if (error == JDWP::ERR_NONE) { in GetClassName()
760 JDWP::JdwpError error; in GetClassLoader() local
761 mirror::Class* c = DecodeClass(id, &error); in GetClassLoader()
763 return error; in GetClassLoader()
770 JDWP::JdwpError error; in GetModifiers() local
771 mirror::Class* c = DecodeClass(id, &error); in GetModifiers()
773 return error; in GetModifiers()
791 JDWP::JdwpError error; in GetMonitorInfo() local
792 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error); in GetMonitorInfo()
856 JDWP::JdwpError error; in GetOwnedMonitors() local
857 Thread* thread = DecodeThread(soa, thread_id, &error); in GetOwnedMonitors()
859 return error; in GetOwnedMonitors()
874 JDWP::JdwpError error; in GetContendedMonitor() local
875 Thread* thread = DecodeThread(soa, thread_id, &error); in GetContendedMonitor()
877 return error; in GetContendedMonitor()
897 JDWP::JdwpError error; in GetInstanceCounts() local
898 ObjPtr<mirror::Class> c = DecodeClass(class_ids[i], &error); in GetInstanceCounts()
900 return error; in GetInstanceCounts()
914 JDWP::JdwpError error; in GetInstances() local
915 ObjPtr<mirror::Class> c = DecodeClass(class_id, &error); in GetInstances()
917 return error; in GetInstances()
932 JDWP::JdwpError error; in GetReferringObjects() local
933 ObjPtr<mirror::Object> o = gRegistry->Get<mirror::Object*>(object_id, &error); in GetReferringObjects()
947 JDWP::JdwpError error; in DisableCollection() local
948 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error); in DisableCollection()
957 JDWP::JdwpError error; in EnableCollection() local
958 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error); in EnableCollection()
978 JDWP::JdwpError error; in IsCollected() local
979 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error); in IsCollected()
1002 JDWP::JdwpError error; in GetReflectedType() local
1003 mirror::Class* c = DecodeClass(class_id, &error); in GetReflectedType()
1005 return error; in GetReflectedType()
1039 JDWP::JdwpError error; in GetClassInfo() local
1040 mirror::Class* c = DecodeClass(class_id, &error); in GetClassInfo()
1042 return error; in GetClassInfo()
1074 JDWP::JdwpError error; in GetReferenceType() local
1075 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error); in GetReferenceType()
1090 JDWP::JdwpError error; in GetSignature() local
1091 mirror::Class* c = DecodeClass(class_id, &error); in GetSignature()
1093 return error; in GetSignature()
1102 JDWP::JdwpError error; in GetSourceDebugExtension() local
1103 mirror::Class* c = DecodeClass(class_id, &error); in GetSourceDebugExtension()
1105 return error; in GetSourceDebugExtension()
1118 JDWP::JdwpError error; in GetSourceFile() local
1119 mirror::Class* c = DecodeClass(class_id, &error); in GetSourceFile()
1121 return error; in GetSourceFile()
1133 JDWP::JdwpError error; in GetObjectTag() local
1134 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error); in GetObjectTag()
1135 if (error != JDWP::ERR_NONE) { in GetObjectTag()
1137 return error; in GetObjectTag()
1174 JDWP::JdwpError error; in GetArrayLength() local
1175 mirror::Array* a = DecodeNonNullArray(array_id, &error); in GetArrayLength()
1177 return error; in GetArrayLength()
1184 JDWP::JdwpError error; in OutputArray() local
1185 mirror::Array* a = DecodeNonNullArray(array_id, &error); in OutputArray()
1187 return error; in OutputArray()
1243 JDWP::JdwpError error; in SetArrayElements() local
1244 mirror::Array* dst = DecodeNonNullArray(array_id, &error); in SetArrayElements()
1246 return error; in SetArrayElements()
1270 mirror::Object* o = gRegistry->Get<mirror::Object*>(id, &error); in SetArrayElements()
1271 if (error != JDWP::ERR_NONE) { in SetArrayElements()
1272 return error; in SetArrayElements()
1300 JDWP::JdwpError error; in CreateObject() local
1301 mirror::Class* c = DecodeClass(class_id, &error); in CreateObject()
1304 return error; in CreateObject()
1331 JDWP::JdwpError error; in CreateArrayObject() local
1332 mirror::Class* c = DecodeClass(array_class_id, &error); in CreateArrayObject()
1335 return error; in CreateArrayObject()
1375 JDWP::JdwpError error; in MatchThread() local
1377 expected_thread_id, &error); in MatchThread()
1394 JDWP::JdwpError error; in MatchType() local
1395 ObjPtr<mirror::Class> expected_class = DecodeClass(class_id, &error); in MatchType()
1410 JDWP::JdwpError error; in MatchInstance() local
1411 mirror::Object* modifier_instance = gRegistry->Get<mirror::Object*>(expected_instance_id, &error); in MatchInstance()
1502 static uint16_t DemangleSlot(uint16_t slot, ArtMethod* m, JDWP::JdwpError* error) in DemangleSlot() argument
1512 *error = JDWP::ERR_NONE; in DemangleSlot()
1519 *error = JDWP::ERR_NONE; in DemangleSlot()
1526 *error = JDWP::ERR_INVALID_SLOT; in DemangleSlot()
1532 JDWP::JdwpError error; in OutputDeclaredFields() local
1533 mirror::Class* c = DecodeClass(class_id, &error); in OutputDeclaredFields()
1535 return error; in OutputDeclaredFields()
1560 JDWP::JdwpError error; in OutputDeclaredMethods() local
1561 mirror::Class* c = DecodeClass(class_id, &error); in OutputDeclaredMethods()
1563 return error; in OutputDeclaredMethods()
1585 JDWP::JdwpError error; in OutputDeclaredInterfaces() local
1587 ObjPtr<mirror::Class> c = DecodeClass(class_id, &error); in OutputDeclaredInterfaces()
1589 return error; in OutputDeclaredInterfaces()
1791 JDWP::JdwpError error; in GetFieldValueImpl() local
1792 mirror::Class* c = DecodeClass(ref_type_id, &error); in GetFieldValueImpl()
1794 return error; in GetFieldValueImpl()
1800 o(hs.NewHandle(Dbg::GetObjectRegistry()->Get<mirror::Object*>(object_id, &error))); in GetFieldValueImpl()
1801 if ((!is_static && o == nullptr) || error != JDWP::ERR_NONE) { in GetFieldValueImpl()
1898 JDWP::JdwpError error; in SetArtFieldValue() local
1899 mirror::Object* v = Dbg::GetObjectRegistry()->Get<mirror::Object*>(value, &error); in SetArtFieldValue()
1900 if (error != JDWP::ERR_NONE) { in SetArtFieldValue()
1930 JDWP::JdwpError error; in SetFieldValueImpl() local
1934 o(hs.NewHandle(Dbg::GetObjectRegistry()->Get<mirror::Object*>(object_id, &error))); in SetFieldValueImpl()
1935 if ((!is_static && o == nullptr) || error != JDWP::ERR_NONE) { in SetFieldValueImpl()
1975 JDWP::JdwpError error; in StringToUtf8() local
1976 mirror::Object* obj = gRegistry->Get<mirror::Object*>(string_id, &error); in StringToUtf8()
1977 if (error != JDWP::ERR_NONE) { in StringToUtf8()
1978 return error; in StringToUtf8()
2020 JDWP::JdwpError error; in GetThreadName() local
2021 DecodeThread(soa, thread_id, &error); in GetThreadName()
2022 if (error != JDWP::ERR_NONE && error != JDWP::ERR_THREAD_NOT_ALIVE) { in GetThreadName()
2023 return error; in GetThreadName()
2027 mirror::Object* thread_object = gRegistry->Get<mirror::Object*>(thread_id, &error); in GetThreadName()
2028 CHECK(thread_object != nullptr) << error; in GetThreadName()
2040 JDWP::JdwpError error; in GetThreadGroup() local
2041 mirror::Object* thread_object = gRegistry->Get<mirror::Object*>(thread_id, &error); in GetThreadGroup()
2042 if (error != JDWP::ERR_NONE) { in GetThreadGroup()
2047 DecodeThread(soa, thread_id, &error); in GetThreadGroup()
2048 if (error == JDWP::ERR_THREAD_NOT_ALIVE) { in GetThreadGroup()
2051 error = JDWP::ERR_NONE; in GetThreadGroup()
2052 } else if (error == JDWP::ERR_NONE) { in GetThreadGroup()
2062 return error; in GetThreadGroup()
2066 JDWP::ObjectId thread_group_id, JDWP::JdwpError* error) in DecodeThreadGroup() argument
2069 error); in DecodeThreadGroup()
2070 if (*error != JDWP::ERR_NONE) { in DecodeThreadGroup()
2074 *error = JDWP::ERR_INVALID_OBJECT; in DecodeThreadGroup()
2082 *error = JDWP::ERR_INVALID_THREAD_GROUP; in DecodeThreadGroup()
2085 *error = JDWP::ERR_NONE; in DecodeThreadGroup()
2091 JDWP::JdwpError error; in GetThreadGroupName() local
2092 mirror::Object* thread_group = DecodeThreadGroup(soa, thread_group_id, &error); in GetThreadGroupName()
2093 if (error != JDWP::ERR_NONE) { in GetThreadGroupName()
2094 return error; in GetThreadGroupName()
2108 JDWP::JdwpError error; in GetThreadGroupParent() local
2109 mirror::Object* thread_group = DecodeThreadGroup(soa, thread_group_id, &error); in GetThreadGroupParent()
2110 if (error != JDWP::ERR_NONE) { in GetThreadGroupParent()
2111 return error; in GetThreadGroupParent()
2158 JDWP::JdwpError error; in GetThreadGroupChildren() local
2159 mirror::Object* thread_group = DecodeThreadGroup(soa, thread_group_id, &error); in GetThreadGroupChildren()
2160 if (error != JDWP::ERR_NONE) { in GetThreadGroupChildren()
2161 return error; in GetThreadGroupChildren()
2238 JDWP::JdwpError error; in GetThreadStatus() local
2239 Thread* thread = DecodeThread(soa, thread_id, &error); in GetThreadStatus()
2240 if (error != JDWP::ERR_NONE) { in GetThreadStatus()
2241 if (error == JDWP::ERR_THREAD_NOT_ALIVE) { in GetThreadStatus()
2245 return error; in GetThreadStatus()
2258 JDWP::JdwpError error; in GetThreadDebugSuspendCount() local
2259 Thread* thread = DecodeThread(soa, thread_id, &error); in GetThreadDebugSuspendCount()
2260 if (error != JDWP::ERR_NONE) { in GetThreadDebugSuspendCount()
2261 return error; in GetThreadDebugSuspendCount()
2270 JDWP::JdwpError error; in Interrupt() local
2271 Thread* thread = DecodeThread(soa, thread_id, &error); in Interrupt()
2272 if (error != JDWP::ERR_NONE) { in Interrupt()
2273 return error; in Interrupt()
2348 JDWP::JdwpError error; in GetThreadFrameCount() local
2350 Thread* thread = DecodeThread(soa, thread_id, &error); in GetThreadFrameCount()
2351 if (error != JDWP::ERR_NONE) { in GetThreadFrameCount()
2352 return error; in GetThreadFrameCount()
2403 JDWP::JdwpError error; in GetThreadFrames() local
2404 Thread* thread = DecodeThread(soa, thread_id, &error); in GetThreadFrames()
2405 if (error != JDWP::ERR_NONE) { in GetThreadFrames()
2406 return error; in GetThreadFrames()
2442 JDWP::JdwpError error; in SuspendThread() local
2443 peer.reset(soa.AddLocalReference<jobject>(gRegistry->Get<mirror::Object*>(thread_id, &error))); in SuspendThread()
2466 JDWP::JdwpError error; in ResumeThread() local
2467 mirror::Object* peer = gRegistry->Get<mirror::Object*>(thread_id, &error); in ResumeThread()
2468 CHECK(peer != nullptr) << error; in ResumeThread()
2518 JDWP::JdwpError error; in GetThisObject() local
2519 Thread* thread = DecodeThread(soa, thread_id, &error); in GetThisObject()
2520 if (error != JDWP::ERR_NONE) { in GetThisObject()
2521 return error; in GetThisObject()
2575 JDWP::JdwpError error; in GetLocalValues() local
2576 Thread* thread = DecodeThread(soa, thread_id, &error); in GetLocalValues()
2577 if (error != JDWP::ERR_NONE) { in GetLocalValues()
2578 return error; in GetLocalValues()
2602 error = Dbg::GetLocalValue(visitor, soa, slot, reqSigByte, ptr, width); in GetLocalValues()
2603 if (error != JDWP::ERR_NONE) { in GetLocalValues()
2604 return error; in GetLocalValues()
2629 JDWP::JdwpError error = JDWP::ERR_NONE; in GetLocalValue() local
2630 uint16_t vreg = DemangleSlot(slot, m, &error); in GetLocalValue()
2631 if (error != JDWP::ERR_NONE) { in GetLocalValue()
2632 return error; in GetLocalValue()
2746 JDWP::JdwpError error; in SetLocalValues() local
2747 Thread* thread = DecodeThread(soa, thread_id, &error); in SetLocalValues()
2748 if (error != JDWP::ERR_NONE) { in SetLocalValues()
2749 return error; in SetLocalValues()
2771 error = Dbg::SetLocalValue(thread, visitor, slot, sigByte, value, width); in SetLocalValues()
2772 if (error != JDWP::ERR_NONE) { in SetLocalValues()
2773 return error; in SetLocalValues()
2792 JDWP::JdwpError error = JDWP::ERR_NONE; in SetLocalValue() local
2793 uint16_t vreg = DemangleSlot(slot, m, &error); in SetLocalValue()
2794 if (error != JDWP::ERR_NONE) { in SetLocalValue()
2795 return error; in SetLocalValue()
2834 &error); in SetLocalValue()
2835 if (error != JDWP::ERR_NONE) { in SetLocalValue()
3868 JDWP::JdwpError error; in UnconfigureStep() local
3869 Thread* thread = DecodeThread(soa, thread_id, &error); in UnconfigureStep()
3870 if (error == JDWP::ERR_NONE) { in UnconfigureStep()
3917 JDWP::JdwpError error; in PrepareInvokeMethod() local
3918 targetThread = DecodeThread(soa, thread_id, &error); in PrepareInvokeMethod()
3919 if (error != JDWP::ERR_NONE) { in PrepareInvokeMethod()
3921 return error; in PrepareInvokeMethod()
3963 mirror::Object* receiver = gRegistry->Get<mirror::Object*>(object_id, &error); in PrepareInvokeMethod()
3964 if (error != JDWP::ERR_NONE) { in PrepareInvokeMethod()
3968 gRegistry->Get<mirror::Object*>(thread_id, &error); in PrepareInvokeMethod()
3969 if (error != JDWP::ERR_NONE) { in PrepareInvokeMethod()
3973 mirror::Class* c = DecodeClass(class_id, &error); in PrepareInvokeMethod()
3975 return error; in PrepareInvokeMethod()
4013 mirror::Object* argument = gRegistry->Get<mirror::Object*>(arg_values[i], &error); in PrepareInvokeMethod()
4014 if (error != JDWP::ERR_NONE) { in PrepareInvokeMethod()
4203 JDWP::JdwpError error = Dbg::StringToUtf8(result_value, &result_string); in ExecuteMethodWithoutPendingException() local
4204 CHECK_EQ(error, JDWP::ERR_NONE); in ExecuteMethodWithoutPendingException()