Lines Matching defs:error

443 static mirror::Array* DecodeNonNullArray(JDWP::RefTypeId id, JDWP::JdwpError* error)
445 mirror::Object* o = Dbg::GetObjectRegistry()->Get<mirror::Object*>(id, error);
447 *error = JDWP::ERR_INVALID_OBJECT;
451 *error = JDWP::ERR_INVALID_ARRAY;
454 *error = JDWP::ERR_NONE;
458 static mirror::Class* DecodeClass(JDWP::RefTypeId id, JDWP::JdwpError* error)
460 mirror::Object* o = Dbg::GetObjectRegistry()->Get<mirror::Object*>(id, error);
462 *error = JDWP::ERR_INVALID_OBJECT;
466 *error = JDWP::ERR_INVALID_CLASS;
469 *error = JDWP::ERR_NONE;
474 JDWP::JdwpError* error)
477 mirror::Object* thread_peer = Dbg::GetObjectRegistry()->Get<mirror::Object*>(thread_id, error);
480 *error = JDWP::ERR_INVALID_OBJECT;
487 *error = JDWP::ERR_INVALID_THREAD;
495 *error = (thread == nullptr) ? JDWP::ERR_THREAD_NOT_ALIVE : JDWP::ERR_NONE;
770 JDWP::JdwpError error;
771 mirror::Object* o = gRegistry->Get<mirror::Object*>(class_id, &error);
773 if (error == JDWP::ERR_NONE) {
821 JDWP::JdwpError error;
822 mirror::Object* o = gRegistry->Get<mirror::Object*>(id, &error);
831 JDWP::JdwpError error;
832 mirror::Class* c = DecodeClass(id, &error);
834 return error;
852 JDWP::JdwpError error;
853 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error);
918 JDWP::JdwpError error;
919 Thread* thread = DecodeThread(soa, thread_id, &error);
921 return error;
936 JDWP::JdwpError error;
937 Thread* thread = DecodeThread(soa, thread_id, &error);
939 return error;
958 JDWP::JdwpError error;
959 mirror::Class* c = DecodeClass(class_ids[i], &error);
961 return error;
975 JDWP::JdwpError error;
976 mirror::Class* c = DecodeClass(class_id, &error);
978 return error;
992 JDWP::JdwpError error;
993 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error);
1006 JDWP::JdwpError error;
1007 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error);
1016 JDWP::JdwpError error;
1017 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error);
1018 // Unlike DisableCollection, JDWP specs do not state an invalid object causes an error. The RI
1019 // also ignores these cases and never return an error. However it's not obvious why this command
1021 // strict and return an error if this happens.
1035 // JDWP specs state an INVALID_OBJECT error is returned if the object ID is not valid. However
1037 JDWP::JdwpError error;
1038 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error);
1061 JDWP::JdwpError error;
1062 mirror::Class* c = DecodeClass(class_id, &error);
1064 return error;
1104 JDWP::JdwpError error;
1105 mirror::Class* c = DecodeClass(class_id, &error);
1107 return error;
1139 JDWP::JdwpError error;
1140 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error);
1155 JDWP::JdwpError error;
1156 mirror::Class* c = DecodeClass(class_id, &error);
1158 return error;
1166 JDWP::JdwpError error;
1167 mirror::Class* c = DecodeClass(class_id, &error);
1169 return error;
1181 JDWP::JdwpError error;
1182 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id, &error);
1183 if (error != JDWP::ERR_NONE) {
1185 return error;
1222 JDWP::JdwpError error;
1223 mirror::Array* a = DecodeNonNullArray(array_id, &error);
1225 return error;
1232 JDWP::JdwpError error;
1233 mirror::Array* a = DecodeNonNullArray(array_id, &error);
1235 return error;
1291 JDWP::JdwpError error;
1292 mirror::Array* dst = DecodeNonNullArray(array_id, &error);
1294 return error;
1318 mirror::Object* o = gRegistry->Get<mirror::Object*>(id, &error);
1319 if (error != JDWP::ERR_NONE) {
1320 return error;
1344 JDWP::JdwpError error;
1345 mirror::Class* c = DecodeClass(class_id, &error);
1348 return error;
1368 JDWP::JdwpError error;
1369 mirror::Class* c = DecodeClass(array_class_id, &error);
1372 return error;
1411 JDWP::JdwpError error;
1413 expected_thread_id, &error);
1430 JDWP::JdwpError error;
1431 mirror::Class* expected_class = DecodeClass(class_id, &error);
1446 JDWP::JdwpError error;
1447 mirror::Object* modifier_instance = gRegistry->Get<mirror::Object*>(expected_instance_id, &error);
1522 static uint16_t DemangleSlot(uint16_t slot, ArtMethod* m, JDWP::JdwpError* error)
1531 *error = JDWP::ERR_NONE;
1538 *error = JDWP::ERR_NONE;
1545 *error = JDWP::ERR_INVALID_SLOT;
1550 JDWP::JdwpError error;
1551 mirror::Class* c = DecodeClass(class_id, &error);
1553 return error;
1577 JDWP::JdwpError error;
1578 mirror::Class* c = DecodeClass(class_id, &error);
1580 return error;
1607 JDWP::JdwpError error;
1610 Handle<mirror::Class> c(hs.NewHandle(DecodeClass(class_id, &error)));
1612 return error;
1814 JDWP::JdwpError error;
1815 mirror::Class* c = DecodeClass(ref_type_id, &error);
1817 return error;
1820 mirror::Object* o = Dbg::GetObjectRegistry()->Get<mirror::Object*>(object_id, &error);
1821 if ((!is_static && o == nullptr) || error != JDWP::ERR_NONE) {
1909 JDWP::JdwpError error;
1910 mirror::Object* v = Dbg::GetObjectRegistry()->Get<mirror::Object*>(value, &error);
1911 if (error != JDWP::ERR_NONE) {
1941 JDWP::JdwpError error;
1942 mirror::Object* o = Dbg::GetObjectRegistry()->Get<mirror::Object*>(object_id, &error);
1943 if ((!is_static && o == nullptr) || error != JDWP::ERR_NONE) {
1976 JDWP::JdwpError error;
1977 mirror::Object* obj = gRegistry->Get<mirror::Object*>(string_id, &error);
1978 if (error != JDWP::ERR_NONE) {
1979 return error;
2020 JDWP::JdwpError error;
2021 Thread* thread = DecodeThread(soa, thread_id, &error);
2023 if (error != JDWP::ERR_NONE && error != JDWP::ERR_THREAD_NOT_ALIVE) {
2024 return error;
2028 mirror::Object* thread_object = gRegistry->Get<mirror::Object*>(thread_id, &error);
2029 CHECK(thread_object != nullptr) << error;
2042 JDWP::JdwpError error;
2043 mirror::Object* thread_object = gRegistry->Get<mirror::Object*>(thread_id, &error);
2044 if (error != JDWP::ERR_NONE) {
2049 Thread* thread = DecodeThread(soa, thread_id, &error);
2051 if (error == JDWP::ERR_THREAD_NOT_ALIVE) {
2054 error = JDWP::ERR_NONE;
2055 } else if (error == JDWP::ERR_NONE) {
2065 return error;
2069 JDWP::ObjectId thread_group_id, JDWP::JdwpError* error)
2072 error);
2073 if (*error != JDWP::ERR_NONE) {
2077 *error = JDWP::ERR_INVALID_OBJECT;
2084 *error = JDWP::ERR_INVALID_THREAD_GROUP;
2087 *error = JDWP::ERR_NONE;
2093 JDWP::JdwpError error;
2094 mirror::Object* thread_group = DecodeThreadGroup(soa, thread_group_id, &error);
2095 if (error != JDWP::ERR_NONE) {
2096 return error;
2110 JDWP::JdwpError error;
2111 mirror::Object* thread_group = DecodeThreadGroup(soa, thread_group_id, &error);
2112 if (error != JDWP::ERR_NONE) {
2113 return error;
2161 JDWP::JdwpError error;
2162 mirror::Object* thread_group = DecodeThreadGroup(soa, thread_group_id, &error);
2163 if (error != JDWP::ERR_NONE) {
2164 return error;
2239 JDWP::JdwpError error;
2240 Thread* thread = DecodeThread(soa, thread_id, &error);
2241 if (error != JDWP::ERR_NONE) {
2242 if (error == JDWP::ERR_THREAD_NOT_ALIVE) {
2246 return error;
2259 JDWP::JdwpError error;
2260 Thread* thread = DecodeThread(soa, thread_id, &error);
2261 if (error != JDWP::ERR_NONE) {
2262 return error;
2271 JDWP::JdwpError error;
2272 Thread* thread = DecodeThread(soa, thread_id, &error);
2273 if (error != JDWP::ERR_NONE) {
2274 return error;
2350 JDWP::JdwpError error;
2352 Thread* thread = DecodeThread(soa, thread_id, &error);
2353 if (error != JDWP::ERR_NONE) {
2354 return error;
2405 JDWP::JdwpError error;
2406 Thread* thread = DecodeThread(soa, thread_id, &error);
2407 if (error != JDWP::ERR_NONE) {
2408 return error;
2440 JDWP::JdwpError error;
2441 peer.reset(soa.AddLocalReference<jobject>(gRegistry->Get<mirror::Object*>(thread_id, &error)));
2462 JDWP::JdwpError error;
2463 mirror::Object* peer = gRegistry->Get<mirror::Object*>(thread_id, &error);
2464 CHECK(peer != nullptr) << error;
2513 JDWP::JdwpError error;
2514 Thread* thread = DecodeThread(soa, thread_id, &error);
2515 if (error != JDWP::ERR_NONE) {
2516 return error;
2568 JDWP::JdwpError error;
2569 Thread* thread = DecodeThread(soa, thread_id, &error);
2570 if (error != JDWP::ERR_NONE) {
2571 return error;
2595 error = Dbg::GetLocalValue(visitor, soa, slot, reqSigByte, ptr, width);
2596 if (error != JDWP::ERR_NONE) {
2597 return error;
2622 JDWP::JdwpError error = JDWP::ERR_NONE;
2623 uint16_t vreg = DemangleSlot(slot, m, &error);
2624 if (error != JDWP::ERR_NONE) {
2625 return error;
2739 JDWP::JdwpError error;
2740 Thread* thread = DecodeThread(soa, thread_id, &error);
2741 if (error != JDWP::ERR_NONE) {
2742 return error;
2764 error = Dbg::SetLocalValue(visitor, slot, sigByte, value, width);
2765 if (error != JDWP::ERR_NONE) {
2766 return error;
2785 JDWP::JdwpError error = JDWP::ERR_NONE;
2786 uint16_t vreg = DemangleSlot(slot, m, &error);
2787 if (error != JDWP::ERR_NONE) {
2788 return error;
2827 &error);
2828 if (error != JDWP::ERR_NONE) {
3803 JDWP::JdwpError error;
3804 Thread* thread = DecodeThread(soa, thread_id, &error);
3805 if (error == JDWP::ERR_NONE) {
3851 JDWP::JdwpError error;
3852 targetThread = DecodeThread(soa, thread_id, &error);
3853 if (error != JDWP::ERR_NONE) {
3855 return error;
3892 mirror::Object* receiver = gRegistry->Get<mirror::Object*>(object_id, &error);
3893 if (error != JDWP::ERR_NONE) {
3897 gRegistry->Get<mirror::Object*>(thread_id, &error);
3898 if (error != JDWP::ERR_NONE) {
3902 mirror::Class* c = DecodeClass(class_id, &error);
3904 return error;
3942 mirror::Object* argument = gRegistry->Get<mirror::Object*>(arg_values[i], &error);
3943 if (error != JDWP::ERR_NONE) {
4122 JDWP::JdwpError error = Dbg::StringToUtf8(result_value, &result_string);
4123 CHECK_EQ(error, JDWP::ERR_NONE);