Lines Matching refs:pReply
129 static JdwpError VM_Version(JdwpState*, Request*, ExpandBuf* pReply) in VM_Version() argument
133 expandBufAddUtf8String(pReply, version); in VM_Version()
136 expandBufAdd4BE(pReply, 1); in VM_Version()
137 expandBufAdd4BE(pReply, 6); in VM_Version()
140 expandBufAddUtf8String(pReply, "1.6.0"); in VM_Version()
143 expandBufAddUtf8String(pReply, "Dalvik"); in VM_Version()
153 static JdwpError VM_ClassesBySignature(JdwpState*, Request* request, ExpandBuf* pReply) in VM_ClassesBySignature() argument
160 expandBufAdd4BE(pReply, ids.size()); in VM_ClassesBySignature()
171 expandBufAdd1(pReply, type_tag); in VM_ClassesBySignature()
172 expandBufAddRefTypeId(pReply, ids[i]); in VM_ClassesBySignature()
173 expandBufAdd4BE(pReply, class_status); in VM_ClassesBySignature()
185 static JdwpError VM_AllThreads(JdwpState*, Request*, ExpandBuf* pReply) in VM_AllThreads() argument
190 expandBufAdd4BE(pReply, thread_ids.size()); in VM_AllThreads()
192 expandBufAddObjectId(pReply, thread_ids[i]); in VM_AllThreads()
201 static JdwpError VM_TopLevelThreadGroups(JdwpState*, Request*, ExpandBuf* pReply) in VM_TopLevelThreadGroups() argument
210 expandBufAdd4BE(pReply, groups); in VM_TopLevelThreadGroups()
212 expandBufAddObjectId(pReply, thread_group_id); in VM_TopLevelThreadGroups()
220 static JdwpError VM_IDSizes(JdwpState*, Request*, ExpandBuf* pReply) in VM_IDSizes() argument
222 expandBufAdd4BE(pReply, sizeof(FieldId)); in VM_IDSizes()
223 expandBufAdd4BE(pReply, sizeof(MethodId)); in VM_IDSizes()
224 expandBufAdd4BE(pReply, sizeof(ObjectId)); in VM_IDSizes()
225 expandBufAdd4BE(pReply, sizeof(RefTypeId)); in VM_IDSizes()
226 expandBufAdd4BE(pReply, sizeof(FrameId)); in VM_IDSizes()
272 static JdwpError VM_CreateString(JdwpState*, Request* request, ExpandBuf* pReply) in VM_CreateString() argument
280 expandBufAddObjectId(pReply, string_id); in VM_CreateString()
284 static JdwpError VM_ClassPaths(JdwpState*, Request*, ExpandBuf* pReply) in VM_ClassPaths() argument
286 expandBufAddUtf8String(pReply, "/"); in VM_ClassPaths()
290 expandBufAdd4BE(pReply, class_path.size()); in VM_ClassPaths()
292 expandBufAddUtf8String(pReply, str); in VM_ClassPaths()
296 expandBufAdd4BE(pReply, boot_class_path.size()); in VM_ClassPaths()
298 expandBufAddUtf8String(pReply, str); in VM_ClassPaths()
354 static JdwpError VM_AllClassesImpl(ExpandBuf* pReply, bool descriptor_and_status, bool generic) in VM_AllClassesImpl() argument
359 expandBufAdd4BE(pReply, classes.size()); in VM_AllClassesImpl()
371 expandBufAdd1(pReply, type_tag); in VM_AllClassesImpl()
372 expandBufAddRefTypeId(pReply, classes[i]); in VM_AllClassesImpl()
374 expandBufAddUtf8String(pReply, descriptor); in VM_AllClassesImpl()
376 expandBufAddUtf8String(pReply, genericSignature); in VM_AllClassesImpl()
378 expandBufAdd4BE(pReply, class_status); in VM_AllClassesImpl()
385 static JdwpError VM_AllClasses(JdwpState*, Request*, ExpandBuf* pReply) in VM_AllClasses() argument
387 return VM_AllClassesImpl(pReply, true, false); in VM_AllClasses()
390 static JdwpError VM_AllClassesWithGeneric(JdwpState*, Request*, ExpandBuf* pReply) in VM_AllClassesWithGeneric() argument
392 return VM_AllClassesImpl(pReply, true, true); in VM_AllClassesWithGeneric()
395 static JdwpError VM_InstanceCounts(JdwpState*, Request* request, ExpandBuf* pReply) in VM_InstanceCounts() argument
412 expandBufAdd4BE(pReply, counts.size()); in VM_InstanceCounts()
414 expandBufAdd8BE(pReply, counts[i]); in VM_InstanceCounts()
419 static JdwpError RT_Modifiers(JdwpState*, Request* request, ExpandBuf* pReply) in RT_Modifiers() argument
422 return Dbg::GetModifiers(refTypeId, pReply); in RT_Modifiers()
428 static JdwpError RT_GetValues(JdwpState*, Request* request, ExpandBuf* pReply) in RT_GetValues() argument
432 expandBufAdd4BE(pReply, field_count); in RT_GetValues()
435 JdwpError status = Dbg::GetStaticFieldValue(refTypeId, fieldId, pReply); in RT_GetValues()
446 static JdwpError RT_SourceFile(JdwpState*, Request* request, ExpandBuf* pReply) in RT_SourceFile() argument
454 expandBufAddUtf8String(pReply, source_file); in RT_SourceFile()
461 static JdwpError RT_Status(JdwpState*, Request* request, ExpandBuf* pReply) in RT_Status() argument
470 expandBufAdd4BE(pReply, class_status); in RT_Status()
477 static JdwpError RT_Interfaces(JdwpState*, Request* request, ExpandBuf* pReply) in RT_Interfaces() argument
480 return Dbg::OutputDeclaredInterfaces(refTypeId, pReply); in RT_Interfaces()
486 static JdwpError RT_ClassObject(JdwpState*, Request* request, ExpandBuf* pReply) in RT_ClassObject() argument
495 expandBufAddObjectId(pReply, class_object_id); in RT_ClassObject()
502 static JdwpError RT_SourceDebugExtension(JdwpState*, Request* request, ExpandBuf* pReply) in RT_SourceDebugExtension() argument
511 expandBufAddUtf8String(pReply, extension_data); in RT_SourceDebugExtension()
515 static JdwpError RT_Signature(JdwpState*, Request* request, ExpandBuf* pReply, bool with_generic) in RT_Signature() argument
524 expandBufAddUtf8String(pReply, signature); in RT_Signature()
526 expandBufAddUtf8String(pReply, ""); in RT_Signature()
531 static JdwpError RT_Signature(JdwpState* state, Request* request, ExpandBuf* pReply) in RT_Signature() argument
533 return RT_Signature(state, request, pReply, false); in RT_Signature()
536 static JdwpError RT_SignatureWithGeneric(JdwpState* state, Request* request, ExpandBuf* pReply) in RT_SignatureWithGeneric() argument
538 return RT_Signature(state, request, pReply, true); in RT_SignatureWithGeneric()
545 static JdwpError RT_ClassLoader(JdwpState*, Request* request, ExpandBuf* pReply) in RT_ClassLoader() argument
548 return Dbg::GetClassLoader(refTypeId, pReply); in RT_ClassLoader()
555 static JdwpError RT_FieldsWithGeneric(JdwpState*, Request* request, ExpandBuf* pReply) in RT_FieldsWithGeneric() argument
558 return Dbg::OutputDeclaredFields(refTypeId, true, pReply); in RT_FieldsWithGeneric()
562 static JdwpError RT_Fields(JdwpState*, Request* request, ExpandBuf* pReply) in RT_Fields() argument
565 return Dbg::OutputDeclaredFields(refTypeId, false, pReply); in RT_Fields()
572 static JdwpError RT_MethodsWithGeneric(JdwpState*, Request* request, ExpandBuf* pReply) in RT_MethodsWithGeneric() argument
575 return Dbg::OutputDeclaredMethods(refTypeId, true, pReply); in RT_MethodsWithGeneric()
579 static JdwpError RT_Methods(JdwpState*, Request* request, ExpandBuf* pReply) in RT_Methods() argument
582 return Dbg::OutputDeclaredMethods(refTypeId, false, pReply); in RT_Methods()
605 static JdwpError CT_Superclass(JdwpState*, Request* request, ExpandBuf* pReply) in CT_Superclass() argument
613 expandBufAddRefTypeId(pReply, superClassId); in CT_Superclass()
650 ExpandBuf* pReply ATTRIBUTE_UNUSED) in CT_InvokeMethod()
667 ExpandBuf* pReply ATTRIBUTE_UNUSED) in CT_NewInstance()
684 static JdwpError AT_newInstance(JdwpState*, Request* request, ExpandBuf* pReply) in AT_newInstance() argument
694 expandBufAdd1(pReply, JT_ARRAY); in AT_newInstance()
695 expandBufAddObjectId(pReply, object_id); in AT_newInstance()
703 ExpandBuf* pReply ATTRIBUTE_UNUSED) in IT_InvokeMethod()
715 static JdwpError M_LineTable(JdwpState*, Request* request, ExpandBuf* pReply) in M_LineTable() argument
720 Dbg::OutputLineTable(refTypeId, method_id, pReply); in M_LineTable()
725 static JdwpError M_VariableTable(JdwpState*, Request* request, ExpandBuf* pReply, in M_VariableTable() argument
735 Dbg::OutputVariableTable(class_id, method_id, generic, pReply); in M_VariableTable()
739 static JdwpError M_VariableTable(JdwpState* state, Request* request, ExpandBuf* pReply) in M_VariableTable() argument
741 return M_VariableTable(state, request, pReply, false); in M_VariableTable()
744 static JdwpError M_VariableTableWithGeneric(JdwpState* state, Request* request, ExpandBuf* pReply) in M_VariableTableWithGeneric() argument
746 return M_VariableTable(state, request, pReply, true); in M_VariableTableWithGeneric()
783 static JdwpError OR_ReferenceType(JdwpState*, Request* request, ExpandBuf* pReply) in OR_ReferenceType() argument
786 return Dbg::GetReferenceType(object_id, pReply); in OR_ReferenceType()
792 static JdwpError OR_GetValues(JdwpState*, Request* request, ExpandBuf* pReply) in OR_GetValues() argument
797 expandBufAdd4BE(pReply, field_count); in OR_GetValues()
800 JdwpError status = Dbg::GetFieldValue(object_id, fieldId, pReply); in OR_GetValues()
852 ExpandBuf* pReply ATTRIBUTE_UNUSED) in OR_InvokeMethod()
874 static JdwpError OR_IsCollected(JdwpState*, Request* request, ExpandBuf* pReply) in OR_IsCollected() argument
879 expandBufAdd1(pReply, is_collected ? 1 : 0); in OR_IsCollected()
903 static JdwpError SR_Value(JdwpState*, Request* request, ExpandBuf* pReply) in SR_Value() argument
914 expandBufAddUtf8String(pReply, str); in SR_Value()
922 static JdwpError TR_Name(JdwpState*, Request* request, ExpandBuf* pReply) in TR_Name() argument
932 expandBufAddUtf8String(pReply, name); in TR_Name()
977 static JdwpError TR_Status(JdwpState*, Request* request, ExpandBuf* pReply) in TR_Status() argument
990 expandBufAdd4BE(pReply, threadStatus); in TR_Status()
991 expandBufAdd4BE(pReply, suspendStatus); in TR_Status()
999 static JdwpError TR_ThreadGroup(JdwpState*, Request* request, ExpandBuf* pReply) in TR_ThreadGroup() argument
1002 return Dbg::GetThreadGroup(thread_id, pReply); in TR_ThreadGroup()
1011 static JdwpError TR_Frames(JdwpState*, Request* request, ExpandBuf* pReply) in TR_Frames() argument
1037 return Dbg::GetThreadFrames(thread_id, start_frame, length, pReply); in TR_Frames()
1043 static JdwpError TR_FrameCount(JdwpState*, Request* request, ExpandBuf* pReply) in TR_FrameCount() argument
1052 expandBufAdd4BE(pReply, static_cast<uint32_t>(frame_count)); in TR_FrameCount()
1115 static JdwpError TR_DebugSuspendCount(JdwpState*, Request* request, ExpandBuf* pReply) in TR_DebugSuspendCount() argument
1118 return Dbg::GetThreadDebugSuspendCount(thread_id, pReply); in TR_DebugSuspendCount()
1126 static JdwpError TGR_Name(JdwpState*, Request* request, ExpandBuf* pReply) in TGR_Name() argument
1129 return Dbg::GetThreadGroupName(thread_group_id, pReply); in TGR_Name()
1136 static JdwpError TGR_Parent(JdwpState*, Request* request, ExpandBuf* pReply) in TGR_Parent() argument
1139 return Dbg::GetThreadGroupParent(thread_group_id, pReply); in TGR_Parent()
1146 static JdwpError TGR_Children(JdwpState*, Request* request, ExpandBuf* pReply) in TGR_Children() argument
1149 return Dbg::GetThreadGroupChildren(thread_group_id, pReply); in TGR_Children()
1155 static JdwpError AR_Length(JdwpState*, Request* request, ExpandBuf* pReply) in AR_Length() argument
1166 expandBufAdd4BE(pReply, length); in AR_Length()
1174 static JdwpError AR_GetValues(JdwpState*, Request* request, ExpandBuf* pReply) in AR_GetValues() argument
1179 return Dbg::OutputArray(array_id, offset, length, pReply); in AR_GetValues()
1193 static JdwpError CLR_VisibleClasses(JdwpState*, Request* request, ExpandBuf* pReply) in CLR_VisibleClasses() argument
1199 return VM_AllClassesImpl(pReply, false, false); in CLR_VisibleClasses()
1214 static JdwpError ER_Set(JdwpState* state, Request* request, ExpandBuf* pReply) in ER_Set() argument
1339 expandBufAdd4BE(pReply, requestId); in ER_Set()
1371 static JdwpError SF_GetValues(JdwpState*, Request* request, ExpandBuf* pReply) in SF_GetValues() argument
1373 return Dbg::GetLocalValues(request, pReply); in SF_GetValues()
1405 static JdwpError COR_ReflectedType(JdwpState*, Request* request, ExpandBuf* pReply) in COR_ReflectedType() argument
1408 return Dbg::GetReflectedType(class_object_id, pReply); in COR_ReflectedType()
1414 static JdwpError DDM_Chunk(JdwpState* state, Request* request, ExpandBuf* pReply) in DDM_Chunk() argument
1426 memcpy(expandBufAddSpace(pReply, replyLen), replyBuf, replyLen); in DDM_Chunk()
1617 size_t JdwpState::ProcessRequest(Request* request, ExpandBuf* pReply, bool* skip_reply) { in ProcessRequest() argument
1650 expandBufAddSpace(pReply, kJDWPHeaderLen); in ProcessRequest()
1658 result = (*gHandlers[i].func)(this, request, pReply); in ProcessRequest()
1683 uint8_t* replyBuf = expandBufGetBuffer(pReply); in ProcessRequest()
1684 replyLength = (result == ERR_NONE) ? expandBufGetLength(pReply) : kJDWPHeaderLen; in ProcessRequest()
1690 CHECK_GT(expandBufGetLength(pReply), 0U) << GetCommandName(request) << " " << request->GetId(); in ProcessRequest()
1692 size_t respLen = expandBufGetLength(pReply) - kJDWPHeaderLen; in ProcessRequest()
1695 VLOG(jdwp) << HexDump(expandBufGetBuffer(pReply) + kJDWPHeaderLen, respLen, false, ""); in ProcessRequest()