Lines Matching refs:pReply

125 static JdwpError VM_Version(JdwpState*, Request*, ExpandBuf* pReply)
129 expandBufAddUtf8String(pReply, version);
132 expandBufAdd4BE(pReply, 1);
133 expandBufAdd4BE(pReply, 6);
136 expandBufAddUtf8String(pReply, "1.6.0");
139 expandBufAddUtf8String(pReply, "Dalvik");
149 static JdwpError VM_ClassesBySignature(JdwpState*, Request* request, ExpandBuf* pReply)
156 expandBufAdd4BE(pReply, ids.size());
167 expandBufAdd1(pReply, type_tag);
168 expandBufAddRefTypeId(pReply, ids[i]);
169 expandBufAdd4BE(pReply, class_status);
181 static JdwpError VM_AllThreads(JdwpState*, Request*, ExpandBuf* pReply)
186 expandBufAdd4BE(pReply, thread_ids.size());
188 expandBufAddObjectId(pReply, thread_ids[i]);
197 static JdwpError VM_TopLevelThreadGroups(JdwpState*, Request*, ExpandBuf* pReply)
206 expandBufAdd4BE(pReply, groups);
208 expandBufAddObjectId(pReply, thread_group_id);
216 static JdwpError VM_IDSizes(JdwpState*, Request*, ExpandBuf* pReply)
218 expandBufAdd4BE(pReply, sizeof(FieldId));
219 expandBufAdd4BE(pReply, sizeof(MethodId));
220 expandBufAdd4BE(pReply, sizeof(ObjectId));
221 expandBufAdd4BE(pReply, sizeof(RefTypeId));
222 expandBufAdd4BE(pReply, sizeof(FrameId));
269 static JdwpError VM_CreateString(JdwpState*, Request* request, ExpandBuf* pReply)
277 expandBufAddObjectId(pReply, string_id);
281 static JdwpError VM_ClassPaths(JdwpState*, Request*, ExpandBuf* pReply)
283 expandBufAddUtf8String(pReply, "/");
287 expandBufAdd4BE(pReply, class_path.size());
289 expandBufAddUtf8String(pReply, str);
294 expandBufAdd4BE(pReply, boot_class_path.size());
296 expandBufAddUtf8String(pReply, str);
352 static JdwpError VM_AllClassesImpl(ExpandBuf* pReply, bool descriptor_and_status, bool generic)
357 expandBufAdd4BE(pReply, classes.size());
369 expandBufAdd1(pReply, type_tag);
370 expandBufAddRefTypeId(pReply, classes[i]);
372 expandBufAddUtf8String(pReply, descriptor);
374 expandBufAddUtf8String(pReply, genericSignature);
376 expandBufAdd4BE(pReply, class_status);
383 static JdwpError VM_AllClasses(JdwpState*, Request*, ExpandBuf* pReply)
385 return VM_AllClassesImpl(pReply, true, false);
388 static JdwpError VM_AllClassesWithGeneric(JdwpState*, Request*, ExpandBuf* pReply)
390 return VM_AllClassesImpl(pReply, true, true);
393 static JdwpError VM_InstanceCounts(JdwpState*, Request* request, ExpandBuf* pReply)
410 expandBufAdd4BE(pReply, counts.size());
412 expandBufAdd8BE(pReply, counts[i]);
417 static JdwpError RT_Modifiers(JdwpState*, Request* request, ExpandBuf* pReply)
420 return Dbg::GetModifiers(refTypeId, pReply);
426 static JdwpError RT_GetValues(JdwpState*, Request* request, ExpandBuf* pReply)
430 expandBufAdd4BE(pReply, field_count);
433 JdwpError status = Dbg::GetStaticFieldValue(refTypeId, fieldId, pReply);
444 static JdwpError RT_SourceFile(JdwpState*, Request* request, ExpandBuf* pReply)
452 expandBufAddUtf8String(pReply, source_file);
459 static JdwpError RT_Status(JdwpState*, Request* request, ExpandBuf* pReply)
468 expandBufAdd4BE(pReply, class_status);
475 static JdwpError RT_Interfaces(JdwpState*, Request* request, ExpandBuf* pReply)
478 return Dbg::OutputDeclaredInterfaces(refTypeId, pReply);
484 static JdwpError RT_ClassObject(JdwpState*, Request* request, ExpandBuf* pReply)
493 expandBufAddObjectId(pReply, class_object_id);
508 static JdwpError RT_Signature(JdwpState*, Request* request, ExpandBuf* pReply, bool with_generic)
517 expandBufAddUtf8String(pReply, signature);
519 expandBufAddUtf8String(pReply, "");
524 static JdwpError RT_Signature(JdwpState* state, Request* request, ExpandBuf* pReply)
526 return RT_Signature(state, request, pReply, false);
529 static JdwpError RT_SignatureWithGeneric(JdwpState* state, Request* request, ExpandBuf* pReply)
531 return RT_Signature(state, request, pReply, true);
538 static JdwpError RT_ClassLoader(JdwpState*, Request* request, ExpandBuf* pReply)
541 return Dbg::GetClassLoader(refTypeId, pReply);
548 static JdwpError RT_FieldsWithGeneric(JdwpState*, Request* request, ExpandBuf* pReply)
551 return Dbg::OutputDeclaredFields(refTypeId, true, pReply);
555 static JdwpError RT_Fields(JdwpState*, Request* request, ExpandBuf* pReply)
558 return Dbg::OutputDeclaredFields(refTypeId, false, pReply);
565 static JdwpError RT_MethodsWithGeneric(JdwpState*, Request* request, ExpandBuf* pReply)
568 return Dbg::OutputDeclaredMethods(refTypeId, true, pReply);
572 static JdwpError RT_Methods(JdwpState*, Request* request, ExpandBuf* pReply)
575 return Dbg::OutputDeclaredMethods(refTypeId, false, pReply);
598 static JdwpError CT_Superclass(JdwpState*, Request* request, ExpandBuf* pReply)
606 expandBufAddRefTypeId(pReply, superClassId);
643 ExpandBuf* pReply ATTRIBUTE_UNUSED)
660 ExpandBuf* pReply ATTRIBUTE_UNUSED)
677 static JdwpError AT_newInstance(JdwpState*, Request* request, ExpandBuf* pReply)
687 expandBufAdd1(pReply, JT_ARRAY);
688 expandBufAddObjectId(pReply, object_id);
695 static JdwpError M_LineTable(JdwpState*, Request* request, ExpandBuf* pReply)
700 Dbg::OutputLineTable(refTypeId, method_id, pReply);
705 static JdwpError M_VariableTable(JdwpState*, Request* request, ExpandBuf* pReply,
715 Dbg::OutputVariableTable(class_id, method_id, generic, pReply);
719 static JdwpError M_VariableTable(JdwpState* state, Request* request, ExpandBuf* pReply)
721 return M_VariableTable(state, request, pReply, false);
724 static JdwpError M_VariableTableWithGeneric(JdwpState* state, Request* request, ExpandBuf* pReply)
726 return M_VariableTable(state, request, pReply, true);
755 static JdwpError OR_ReferenceType(JdwpState*, Request* request, ExpandBuf* pReply)
758 return Dbg::GetReferenceType(object_id, pReply);
764 static JdwpError OR_GetValues(JdwpState*, Request* request, ExpandBuf* pReply)
769 expandBufAdd4BE(pReply, field_count);
772 JdwpError status = Dbg::GetFieldValue(object_id, fieldId, pReply);
824 ExpandBuf* pReply ATTRIBUTE_UNUSED)
846 static JdwpError OR_IsCollected(JdwpState*, Request* request, ExpandBuf* pReply)
851 expandBufAdd1(pReply, is_collected ? 1 : 0);
875 static JdwpError SR_Value(JdwpState*, Request* request, ExpandBuf* pReply)
886 expandBufAddUtf8String(pReply, str);
894 static JdwpError TR_Name(JdwpState*, Request* request, ExpandBuf* pReply)
904 expandBufAddUtf8String(pReply, name);
950 static JdwpError TR_Status(JdwpState*, Request* request, ExpandBuf* pReply)
963 expandBufAdd4BE(pReply, threadStatus);
964 expandBufAdd4BE(pReply, suspendStatus);
972 static JdwpError TR_ThreadGroup(JdwpState*, Request* request, ExpandBuf* pReply)
975 return Dbg::GetThreadGroup(thread_id, pReply);
984 static JdwpError TR_Frames(JdwpState*, Request* request, ExpandBuf* pReply)
1010 return Dbg::GetThreadFrames(thread_id, start_frame, length, pReply);
1016 static JdwpError TR_FrameCount(JdwpState*, Request* request, ExpandBuf* pReply)
1025 expandBufAdd4BE(pReply, static_cast<uint32_t>(frame_count));
1089 static JdwpError TR_DebugSuspendCount(JdwpState*, Request* request, ExpandBuf* pReply)
1092 return Dbg::GetThreadDebugSuspendCount(thread_id, pReply);
1100 static JdwpError TGR_Name(JdwpState*, Request* request, ExpandBuf* pReply)
1103 return Dbg::GetThreadGroupName(thread_group_id, pReply);
1110 static JdwpError TGR_Parent(JdwpState*, Request* request, ExpandBuf* pReply)
1113 return Dbg::GetThreadGroupParent(thread_group_id, pReply);
1120 static JdwpError TGR_Children(JdwpState*, Request* request, ExpandBuf* pReply)
1123 return Dbg::GetThreadGroupChildren(thread_group_id, pReply);
1129 static JdwpError AR_Length(JdwpState*, Request* request, ExpandBuf* pReply)
1140 expandBufAdd4BE(pReply, length);
1148 static JdwpError AR_GetValues(JdwpState*, Request* request, ExpandBuf* pReply)
1153 return Dbg::OutputArray(array_id, offset, length, pReply);
1167 static JdwpError CLR_VisibleClasses(JdwpState*, Request* request, ExpandBuf* pReply)
1173 return VM_AllClassesImpl(pReply, false, false);
1181 static JdwpError ER_Set(JdwpState* state, Request* request, ExpandBuf* pReply)
1308 expandBufAdd4BE(pReply, requestId);
1338 static JdwpError SF_GetValues(JdwpState*, Request* request, ExpandBuf* pReply)
1340 return Dbg::GetLocalValues(request, pReply);
1372 static JdwpError COR_ReflectedType(JdwpState*, Request* request, ExpandBuf* pReply)
1375 return Dbg::GetReflectedType(class_object_id, pReply);
1381 static JdwpError DDM_Chunk(JdwpState* state, Request* request, ExpandBuf* pReply)
1393 memcpy(expandBufAddSpace(pReply, replyLen), replyBuf, replyLen);
1581 size_t JdwpState::ProcessRequest(Request* request, ExpandBuf* pReply, bool* skip_reply) {
1614 expandBufAddSpace(pReply, kJDWPHeaderLen);
1622 result = (*gHandlers[i].func)(this, request, pReply);
1647 uint8_t* replyBuf = expandBufGetBuffer(pReply);
1648 replyLength = (result == ERR_NONE) ? expandBufGetLength(pReply) : kJDWPHeaderLen;
1654 CHECK_GT(expandBufGetLength(pReply), 0U) << GetCommandName(request) << " " << request->GetId();
1656 size_t respLen = expandBufGetLength(pReply) - kJDWPHeaderLen;
1659 VLOG(jdwp) << HexDump(expandBufGetBuffer(pReply) + kJDWPHeaderLen, respLen, false, "");