Home | History | Annotate | Download | only in jdwp

Lines Matching refs:pReply

55 static void WriteValue(ExpandBuf* pReply, int width, uint64_t value) {
57 case 1: expandBufAdd1(pReply, value); break;
58 case 2: expandBufAdd2BE(pReply, value); break;
59 case 4: expandBufAdd4BE(pReply, value); break;
60 case 8: expandBufAdd8BE(pReply, value); break;
94 static JdwpError FinishInvoke(JdwpState*, Request& request, ExpandBuf* pReply,
139 expandBufAdd1(pReply, resultTag);
141 WriteValue(pReply, width, resultValue);
143 expandBufAdd1(pReply, JT_OBJECT);
144 expandBufAddObjectId(pReply, exceptObjId);
161 static JdwpError VM_Version(JdwpState*, Request&, ExpandBuf* pReply)
165 expandBufAddUtf8String(pReply, version);
168 expandBufAdd4BE(pReply, 1);
169 expandBufAdd4BE(pReply, 6);
172 expandBufAddUtf8String(pReply, "1.6.0");
175 expandBufAddUtf8String(pReply, "Dalvik");
185 static JdwpError VM_ClassesBySignature(JdwpState*, Request& request, ExpandBuf* pReply)
192 expandBufAdd4BE(pReply, ids.size());
203 expandBufAdd1(pReply, type_tag);
204 expandBufAddRefTypeId(pReply, ids[i]);
205 expandBufAdd4BE(pReply, class_status);
217 static JdwpError VM_AllThreads(JdwpState*, Request&, ExpandBuf* pReply)
222 expandBufAdd4BE(pReply, thread_ids.size());
224 expandBufAddObjectId(pReply, thread_ids[i]);
233 static JdwpError VM_TopLevelThreadGroups(JdwpState*, Request&, ExpandBuf* pReply)
242 expandBufAdd4BE(pReply, groups);
244 expandBufAddObjectId(pReply, thread_group_id);
254 static JdwpError VM_IDSizes(JdwpState*, Request&, ExpandBuf* pReply)
256 expandBufAdd4BE(pReply, sizeof(FieldId));
257 expandBufAdd4BE(pReply, sizeof(MethodId));
258 expandBufAdd4BE(pReply, sizeof(ObjectId));
259 expandBufAdd4BE(pReply, sizeof(RefTypeId));
260 expandBufAdd4BE(pReply, sizeof(FrameId));
307 static JdwpError VM_CreateString(JdwpState*, Request& request, ExpandBuf* pReply)
314 expandBufAddObjectId(pReply, stringId);
318 static JdwpError VM_ClassPaths(JdwpState*, Request&, ExpandBuf* pReply)
320 expandBufAddUtf8String(pReply, "/");
324 expandBufAdd4BE(pReply, class_path.size());
326 expandBufAddUtf8String(pReply, class_path[i]);
331 expandBufAdd4BE(pReply, boot_class_path.size());
333 expandBufAddUtf8String(pReply, boot_class_path[i]);
389 static JdwpError VM_AllClassesImpl(ExpandBuf* pReply, bool descriptor_and_status, bool generic)
394 expandBufAdd4BE(pReply, classes.size());
406 expandBufAdd1(pReply, type_tag);
407 expandBufAddRefTypeId(pReply, classes[i]);
409 expandBufAddUtf8String(pReply, descriptor);
411 expandBufAddUtf8String(pReply, genericSignature);
413 expandBufAdd4BE(pReply, class_status);
420 static JdwpError VM_AllClasses(JdwpState*, Request&, ExpandBuf* pReply)
422 return VM_AllClassesImpl(pReply, true, false);
425 static JdwpError VM_AllClassesWithGeneric(JdwpState*, Request&, ExpandBuf* pReply)
427 return VM_AllClassesImpl(pReply, true, true);
430 static JdwpError VM_InstanceCounts(JdwpState*, Request& request, ExpandBuf* pReply)
447 expandBufAdd4BE(pReply, counts.size());
449 expandBufAdd8BE(pReply, counts[i]);
454 static JdwpError RT_Modifiers(JdwpState*, Request& request, ExpandBuf* pReply)
457 return Dbg::GetModifiers(refTypeId, pReply);
463 static JdwpError RT_GetValues(JdwpState*, Request& request, ExpandBuf* pReply)
467 expandBufAdd4BE(pReply, field_count);
470 JdwpError status = Dbg::GetStaticFieldValue(refTypeId, fieldId, pReply);
481 static JdwpError RT_SourceFile(JdwpState*, Request& request, ExpandBuf* pReply)
489 expandBufAddUtf8String(pReply, source_file);
496 static JdwpError RT_Status(JdwpState*, Request& request, ExpandBuf* pReply)
505 expandBufAdd4BE(pReply, class_status);
512 static JdwpError RT_Interfaces(JdwpState*, Request& request, ExpandBuf* pReply)
515 return Dbg::OutputDeclaredInterfaces(refTypeId, pReply);
521 static JdwpError RT_ClassObject(JdwpState*, Request& request, ExpandBuf* pReply)
530 expandBufAddObjectId(pReply, class_object_id);
545 static JdwpError RT_Signature(JdwpState*, Request& request, ExpandBuf* pReply, bool with_generic)
554 expandBufAddUtf8String(pReply, signature);
556 expandBufAddUtf8String(pReply, "");
561 static JdwpError RT_Signature(JdwpState* state, Request& request, ExpandBuf* pReply)
563 return RT_Signature(state, request, pReply, false);
566 static JdwpError RT_SignatureWithGeneric(JdwpState* state, Request& request, ExpandBuf* pReply)
568 return RT_Signature(state, request, pReply, true);
575 static JdwpError RT_ClassLoader(JdwpState*, Request& request, ExpandBuf* pReply)
578 return Dbg::GetClassLoader(refTypeId, pReply);
585 static JdwpError RT_FieldsWithGeneric(JdwpState*, Request& request, ExpandBuf* pReply)
588 return Dbg::OutputDeclaredFields(refTypeId, true, pReply);
592 static JdwpError RT_Fields(JdwpState*, Request& request, ExpandBuf* pReply)
595 return Dbg::OutputDeclaredFields(refTypeId, false, pReply);
602 static JdwpError RT_MethodsWithGeneric(JdwpState*, Request& request, ExpandBuf* pReply)
605 return Dbg::OutputDeclaredMethods(refTypeId, true, pReply);
609 static JdwpError RT_Methods(JdwpState*, Request& request, ExpandBuf* pReply)
612 return Dbg::OutputDeclaredMethods(refTypeId, false, pReply);
635 static JdwpError CT_Superclass(JdwpState*, Request& request, ExpandBuf* pReply)
643 expandBufAddRefTypeId(pReply, superClassId);
679 static JdwpError CT_InvokeMethod(JdwpState* state, Request& request, ExpandBuf* pReply)
685 return FinishInvoke(state, request, pReply, thread_id, 0, class_id, method_id, false);
695 static JdwpError CT_NewInstance(JdwpState* state, Request& request, ExpandBuf* pReply)
709 return FinishInvoke(state, request, pReply, thread_id, object_id, class_id, method_id, true);
715 static JdwpError AT_newInstance(JdwpState*, Request& request, ExpandBuf* pReply)
728 expandBufAdd1(pReply, JT_ARRAY);
729 expandBufAddObjectId(pReply, object_id);
736 static JdwpError M_LineTable(JdwpState*, Request& request, ExpandBuf* pReply)
741 Dbg::OutputLineTable(refTypeId, method_id, pReply);
746 static JdwpError M_VariableTable(JdwpState*, Request& request, ExpandBuf* pReply,
756 Dbg::OutputVariableTable(class_id, method_id, generic, pReply);
760 static JdwpError M_VariableTable(JdwpState* state, Request& request, ExpandBuf* pReply)
762 return M_VariableTable(state, request, pReply, false);
765 static JdwpError M_VariableTableWithGeneric(JdwpState* state, Request& request, ExpandBuf* pReply)
767 return M_VariableTable(state, request, pReply, true);
796 static JdwpError OR_ReferenceType(JdwpState*, Request& request, ExpandBuf* pReply)
799 return Dbg::GetReferenceType(object_id, pReply);
805 static JdwpError OR_GetValues(JdwpState*, Request& request, ExpandBuf* pReply)
810 expandBufAdd4BE(pReply, field_count);
813 JdwpError status = Dbg::GetFieldValue(object_id, fieldId, pReply);
864 static JdwpError OR_InvokeMethod(JdwpState* state, Request& request, ExpandBuf* pReply)
871 return FinishInvoke(state, request, pReply, thread_id, object_id, class_id, method_id, false);
886 static JdwpError OR_IsCollected(JdwpState*, Request& request, ExpandBuf* pReply)
891 expandBufAdd1(pReply, is_collected ? 1 : 0);
915 static JdwpError SR_Value(JdwpState*, Request& request, ExpandBuf* pReply)
922 expandBufAddUtf8String(pReply, str);
930 static JdwpError TR_Name(JdwpState*, Request& request, ExpandBuf* pReply)
940 expandBufAddUtf8String(pReply, name);
986 static JdwpError TR_Status(JdwpState*, Request& request, ExpandBuf* pReply)
999 expandBufAdd4BE(pReply, threadStatus);
1000 expandBufAdd4BE(pReply, suspendStatus);
1008 static JdwpError TR_ThreadGroup(JdwpState*, Request& request, ExpandBuf* pReply)
1011 return Dbg::GetThreadGroup(thread_id, pReply);
1020 static JdwpError TR_Frames(JdwpState*, Request& request, ExpandBuf* pReply)
1046 return Dbg::GetThreadFrames(thread_id, start_frame, length, pReply);
1052 static JdwpError TR_FrameCount(JdwpState*, Request& request, ExpandBuf* pReply)
1061 expandBufAdd4BE(pReply, static_cast<uint32_t>(frame_count));
1124 static JdwpError TR_DebugSuspendCount(JdwpState*, Request& request, ExpandBuf* pReply)
1127 return Dbg::GetThreadDebugSuspendCount(thread_id, pReply);
1135 static JdwpError TGR_Name(JdwpState*, Request& request, ExpandBuf* pReply)
1139 expandBufAddUtf8String(pReply, Dbg::GetThreadGroupName(thread_group_id));
1148 static JdwpError TGR_Parent(JdwpState*, Request& request, ExpandBuf* pReply)
1153 expandBufAddObjectId(pReply, parentGroup);
1162 static JdwpError TGR_Children(JdwpState*, Request& request, ExpandBuf* pReply)
1168 expandBufAdd4BE(pReply, thread_ids.size());
1170 expandBufAddObjectId(pReply, thread_ids[i]);
1175 expandBufAdd4BE(pReply, child_thread_groups_ids.size());
1177 expandBufAddObjectId(pReply, child_thread_groups_ids[i]);
1186 static JdwpError AR_Length(JdwpState*, Request& request, ExpandBuf* pReply)
1197 expandBufAdd4BE(pReply, length);
1205 static JdwpError AR_GetValues(JdwpState*, Request& request, ExpandBuf* pReply)
1210 return Dbg::OutputArray(array_id, offset, length, pReply);
1224 static JdwpError CLR_VisibleClasses(JdwpState*, Request& request, ExpandBuf* pReply)
1230 return VM_AllClassesImpl(pReply, false, false);
1238 static JdwpError ER_Set(JdwpState* state, Request& request, ExpandBuf* pReply)
1363 expandBufAdd4BE(pReply, requestId);
1393 static JdwpError SF_GetValues(JdwpState*, Request& request, ExpandBuf* pReply)
1399 expandBufAdd4BE(pReply, slot_count); /* "int values" */
1407 uint8_t* ptr = expandBufAddSpace(pReply, width+1);
1457 static JdwpError COR_ReflectedType(JdwpState*, Request& request, ExpandBuf* pReply)
1460 return Dbg::GetReflectedType(class_object_id, pReply);
1466 static JdwpError DDM_Chunk(JdwpState* state, Request& request, ExpandBuf* pReply)
1478 memcpy(expandBufAddSpace(pReply, replyLen), replyBuf, replyLen);
1652 void JdwpState::ProcessRequest(Request& request, ExpandBuf* pReply) {
1690 expandBufAddSpace(pReply, kJDWPHeaderLen);
1696 result = (*gHandlers[i].func)(this, request, pReply);
1714 uint8_t* replyBuf = expandBufGetBuffer(pReply);
1719 Set4BE(replyBuf + 0, expandBufGetLength(pReply));
1724 CHECK_GT(expandBufGetLength(pReply), 0U) << GetCommandName(request) << " " << request.GetId();
1726 size_t respLen = expandBufGetLength(pReply) - kJDWPHeaderLen;
1729 VLOG(jdwp) << HexDump(expandBufGetBuffer(pReply) + kJDWPHeaderLen, respLen);