Lines Matching refs:request
94 static JdwpError FinishInvoke(JdwpState*, Request& request, ExpandBuf* pReply, in FinishInvoke() argument
100 int32_t arg_count = request.ReadSigned32("argument count"); in FinishInvoke()
111 argTypes[i] = request.ReadTag(); in FinishInvoke()
113 argValues[i] = request.ReadValue(width); in FinishInvoke()
117 uint32_t options = request.ReadUnsigned32("InvokeOptions bit flags"); in FinishInvoke()
185 static JdwpError VM_ClassesBySignature(JdwpState*, Request& request, ExpandBuf* pReply) in VM_ClassesBySignature() argument
187 std::string classDescriptor(request.ReadUtf8String()); in VM_ClassesBySignature()
294 static JdwpError VM_Exit(JdwpState* state, Request& request, ExpandBuf*) in VM_Exit() argument
296 uint32_t exit_status = request.ReadUnsigned32("exit_status"); in VM_Exit()
307 static JdwpError VM_CreateString(JdwpState*, Request& request, ExpandBuf* pReply) in VM_CreateString() argument
309 std::string str(request.ReadUtf8String()); in VM_CreateString()
339 static JdwpError VM_DisposeObjects(JdwpState*, Request& request, ExpandBuf*) in VM_DisposeObjects() argument
341 size_t object_count = request.ReadUnsigned32("object_count"); in VM_DisposeObjects()
343 ObjectId object_id = request.ReadObjectId(); in VM_DisposeObjects()
344 uint32_t reference_count = request.ReadUnsigned32("reference_count"); in VM_DisposeObjects()
362 static JdwpError VM_CapabilitiesNew(JdwpState*, Request& request, ExpandBuf* reply) in VM_CapabilitiesNew() argument
365 VM_Capabilities(NULL, request, reply); in VM_CapabilitiesNew()
430 static JdwpError VM_InstanceCounts(JdwpState*, Request& request, ExpandBuf* pReply) in VM_InstanceCounts() argument
432 int32_t class_count = request.ReadSigned32("class count"); in VM_InstanceCounts()
438 class_ids.push_back(request.ReadRefTypeId()); in VM_InstanceCounts()
454 static JdwpError RT_Modifiers(JdwpState*, Request& request, ExpandBuf* pReply) in RT_Modifiers() argument
456 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_Modifiers()
463 static JdwpError RT_GetValues(JdwpState*, Request& request, ExpandBuf* pReply) in RT_GetValues() argument
465 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_GetValues()
466 int32_t field_count = request.ReadSigned32("field count"); in RT_GetValues()
469 FieldId fieldId = request.ReadFieldId(); in RT_GetValues()
481 static JdwpError RT_SourceFile(JdwpState*, Request& request, ExpandBuf* pReply) in RT_SourceFile() argument
483 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_SourceFile()
496 static JdwpError RT_Status(JdwpState*, Request& request, ExpandBuf* pReply) in RT_Status() argument
498 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_Status()
512 static JdwpError RT_Interfaces(JdwpState*, Request& request, ExpandBuf* pReply) in RT_Interfaces() argument
514 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_Interfaces()
521 static JdwpError RT_ClassObject(JdwpState*, Request& request, ExpandBuf* pReply) in RT_ClassObject() argument
523 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_ClassObject()
545 static JdwpError RT_Signature(JdwpState*, Request& request, ExpandBuf* pReply, bool with_generic) in RT_Signature() argument
547 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_Signature()
561 static JdwpError RT_Signature(JdwpState* state, Request& request, ExpandBuf* pReply) in RT_Signature() argument
563 return RT_Signature(state, request, pReply, false); in RT_Signature()
566 static JdwpError RT_SignatureWithGeneric(JdwpState* state, Request& request, ExpandBuf* pReply) in RT_SignatureWithGeneric() argument
568 return RT_Signature(state, request, pReply, true); in RT_SignatureWithGeneric()
575 static JdwpError RT_ClassLoader(JdwpState*, Request& request, ExpandBuf* pReply) in RT_ClassLoader() argument
577 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_ClassLoader()
585 static JdwpError RT_FieldsWithGeneric(JdwpState*, Request& request, ExpandBuf* pReply) in RT_FieldsWithGeneric() argument
587 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_FieldsWithGeneric()
592 static JdwpError RT_Fields(JdwpState*, Request& request, ExpandBuf* pReply) in RT_Fields() argument
594 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_Fields()
602 static JdwpError RT_MethodsWithGeneric(JdwpState*, Request& request, ExpandBuf* pReply) in RT_MethodsWithGeneric() argument
604 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_MethodsWithGeneric()
609 static JdwpError RT_Methods(JdwpState*, Request& request, ExpandBuf* pReply) in RT_Methods() argument
611 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_Methods()
615 static JdwpError RT_Instances(JdwpState*, Request& request, ExpandBuf* reply) in RT_Instances() argument
617 RefTypeId class_id = request.ReadRefTypeId(); in RT_Instances()
618 int32_t max_count = request.ReadSigned32("max count"); in RT_Instances()
635 static JdwpError CT_Superclass(JdwpState*, Request& request, ExpandBuf* pReply) in CT_Superclass() argument
637 RefTypeId class_id = request.ReadRefTypeId(); in CT_Superclass()
650 static JdwpError CT_SetValues(JdwpState* , Request& request, ExpandBuf*) in CT_SetValues() argument
652 RefTypeId class_id = request.ReadRefTypeId(); in CT_SetValues()
653 int32_t values_count = request.ReadSigned32("values count"); in CT_SetValues()
658 FieldId fieldId = request.ReadFieldId(); in CT_SetValues()
661 uint64_t value = request.ReadValue(width); in CT_SetValues()
679 static JdwpError CT_InvokeMethod(JdwpState* state, Request& request, ExpandBuf* pReply) in CT_InvokeMethod() argument
681 RefTypeId class_id = request.ReadRefTypeId(); in CT_InvokeMethod()
682 ObjectId thread_id = request.ReadThreadId(); in CT_InvokeMethod()
683 MethodId method_id = request.ReadMethodId(); in CT_InvokeMethod()
685 return FinishInvoke(state, request, pReply, thread_id, 0, class_id, method_id, false); in CT_InvokeMethod()
695 static JdwpError CT_NewInstance(JdwpState* state, Request& request, ExpandBuf* pReply) in CT_NewInstance() argument
697 RefTypeId class_id = request.ReadRefTypeId(); in CT_NewInstance()
698 ObjectId thread_id = request.ReadThreadId(); in CT_NewInstance()
699 MethodId method_id = request.ReadMethodId(); in CT_NewInstance()
709 return FinishInvoke(state, request, pReply, thread_id, object_id, class_id, method_id, true); in CT_NewInstance()
715 static JdwpError AT_newInstance(JdwpState*, Request& request, ExpandBuf* pReply) in AT_newInstance() argument
717 RefTypeId arrayTypeId = request.ReadRefTypeId(); in AT_newInstance()
718 int32_t length = request.ReadSigned32("length"); in AT_newInstance()
736 static JdwpError M_LineTable(JdwpState*, Request& request, ExpandBuf* pReply) in M_LineTable() argument
738 RefTypeId refTypeId = request.ReadRefTypeId(); in M_LineTable()
739 MethodId method_id = request.ReadMethodId(); in M_LineTable()
746 static JdwpError M_VariableTable(JdwpState*, Request& request, ExpandBuf* pReply, in M_VariableTable() argument
749 RefTypeId class_id = request.ReadRefTypeId(); in M_VariableTable()
750 MethodId method_id = request.ReadMethodId(); in M_VariableTable()
760 static JdwpError M_VariableTable(JdwpState* state, Request& request, ExpandBuf* pReply) in M_VariableTable() argument
762 return M_VariableTable(state, request, pReply, false); in M_VariableTable()
765 static JdwpError M_VariableTableWithGeneric(JdwpState* state, Request& request, ExpandBuf* pReply) in M_VariableTableWithGeneric() argument
767 return M_VariableTable(state, request, pReply, true); in M_VariableTableWithGeneric()
770 static JdwpError M_Bytecodes(JdwpState*, Request& request, ExpandBuf* reply) in M_Bytecodes() argument
772 RefTypeId class_id = request.ReadRefTypeId(); in M_Bytecodes()
773 MethodId method_id = request.ReadMethodId(); in M_Bytecodes()
796 static JdwpError OR_ReferenceType(JdwpState*, Request& request, ExpandBuf* pReply) in OR_ReferenceType() argument
798 ObjectId object_id = request.ReadObjectId(); in OR_ReferenceType()
805 static JdwpError OR_GetValues(JdwpState*, Request& request, ExpandBuf* pReply) in OR_GetValues() argument
807 ObjectId object_id = request.ReadObjectId(); in OR_GetValues()
808 int32_t field_count = request.ReadSigned32("field count"); in OR_GetValues()
812 FieldId fieldId = request.ReadFieldId(); in OR_GetValues()
825 static JdwpError OR_SetValues(JdwpState*, Request& request, ExpandBuf*) in OR_SetValues() argument
827 ObjectId object_id = request.ReadObjectId(); in OR_SetValues()
828 int32_t field_count = request.ReadSigned32("field count"); in OR_SetValues()
831 FieldId fieldId = request.ReadFieldId(); in OR_SetValues()
835 uint64_t value = request.ReadValue(width); in OR_SetValues()
847 static JdwpError OR_MonitorInfo(JdwpState*, Request& request, ExpandBuf* reply) in OR_MonitorInfo() argument
849 ObjectId object_id = request.ReadObjectId(); in OR_MonitorInfo()
864 static JdwpError OR_InvokeMethod(JdwpState* state, Request& request, ExpandBuf* pReply) in OR_InvokeMethod() argument
866 ObjectId object_id = request.ReadObjectId(); in OR_InvokeMethod()
867 ObjectId thread_id = request.ReadThreadId(); in OR_InvokeMethod()
868 RefTypeId class_id = request.ReadRefTypeId(); in OR_InvokeMethod()
869 MethodId method_id = request.ReadMethodId(); in OR_InvokeMethod()
871 return FinishInvoke(state, request, pReply, thread_id, object_id, class_id, method_id, false); in OR_InvokeMethod()
874 static JdwpError OR_DisableCollection(JdwpState*, Request& request, ExpandBuf*) in OR_DisableCollection() argument
876 ObjectId object_id = request.ReadObjectId(); in OR_DisableCollection()
880 static JdwpError OR_EnableCollection(JdwpState*, Request& request, ExpandBuf*) in OR_EnableCollection() argument
882 ObjectId object_id = request.ReadObjectId(); in OR_EnableCollection()
886 static JdwpError OR_IsCollected(JdwpState*, Request& request, ExpandBuf* pReply) in OR_IsCollected() argument
888 ObjectId object_id = request.ReadObjectId(); in OR_IsCollected()
895 static JdwpError OR_ReferringObjects(JdwpState*, Request& request, ExpandBuf* reply) in OR_ReferringObjects() argument
897 ObjectId object_id = request.ReadObjectId(); in OR_ReferringObjects()
898 int32_t max_count = request.ReadSigned32("max count"); in OR_ReferringObjects()
915 static JdwpError SR_Value(JdwpState*, Request& request, ExpandBuf* pReply) in SR_Value() argument
917 ObjectId stringObject = request.ReadObjectId(); in SR_Value()
930 static JdwpError TR_Name(JdwpState*, Request& request, ExpandBuf* pReply) in TR_Name() argument
932 ObjectId thread_id = request.ReadThreadId(); in TR_Name()
951 static JdwpError TR_Suspend(JdwpState*, Request& request, ExpandBuf*) in TR_Suspend() argument
953 ObjectId thread_id = request.ReadThreadId(); in TR_Suspend()
970 static JdwpError TR_Resume(JdwpState*, Request& request, ExpandBuf*) in TR_Resume() argument
972 ObjectId thread_id = request.ReadThreadId(); in TR_Resume()
986 static JdwpError TR_Status(JdwpState*, Request& request, ExpandBuf* pReply) in TR_Status() argument
988 ObjectId thread_id = request.ReadThreadId(); in TR_Status()
1008 static JdwpError TR_ThreadGroup(JdwpState*, Request& request, ExpandBuf* pReply) in TR_ThreadGroup() argument
1010 ObjectId thread_id = request.ReadThreadId(); in TR_ThreadGroup()
1020 static JdwpError TR_Frames(JdwpState*, Request& request, ExpandBuf* pReply) in TR_Frames() argument
1022 ObjectId thread_id = request.ReadThreadId(); in TR_Frames()
1023 uint32_t start_frame = request.ReadUnsigned32("start frame"); in TR_Frames()
1024 uint32_t length = request.ReadUnsigned32("length"); in TR_Frames()
1052 static JdwpError TR_FrameCount(JdwpState*, Request& request, ExpandBuf* pReply) in TR_FrameCount() argument
1054 ObjectId thread_id = request.ReadThreadId(); in TR_FrameCount()
1066 static JdwpError TR_OwnedMonitors(Request& request, ExpandBuf* reply, bool with_stack_depths) in TR_OwnedMonitors() argument
1068 ObjectId thread_id = request.ReadThreadId(); in TR_OwnedMonitors()
1090 static JdwpError TR_OwnedMonitors(JdwpState*, Request& request, ExpandBuf* reply) in TR_OwnedMonitors() argument
1092 return TR_OwnedMonitors(request, reply, false); in TR_OwnedMonitors()
1095 static JdwpError TR_OwnedMonitorsStackDepthInfo(JdwpState*, Request& request, ExpandBuf* reply) in TR_OwnedMonitorsStackDepthInfo() argument
1097 return TR_OwnedMonitors(request, reply, true); in TR_OwnedMonitorsStackDepthInfo()
1100 static JdwpError TR_CurrentContendedMonitor(JdwpState*, Request& request, ExpandBuf* reply) in TR_CurrentContendedMonitor() argument
1102 ObjectId thread_id = request.ReadThreadId(); in TR_CurrentContendedMonitor()
1112 static JdwpError TR_Interrupt(JdwpState*, Request& request, ExpandBuf* reply) in TR_Interrupt() argument
1114 ObjectId thread_id = request.ReadThreadId(); in TR_Interrupt()
1124 static JdwpError TR_DebugSuspendCount(JdwpState*, Request& request, ExpandBuf* pReply) in TR_DebugSuspendCount() argument
1126 ObjectId thread_id = request.ReadThreadId(); in TR_DebugSuspendCount()
1135 static JdwpError TGR_Name(JdwpState*, Request& request, ExpandBuf* pReply) in TGR_Name() argument
1137 ObjectId thread_group_id = request.ReadThreadGroupId(); in TGR_Name()
1148 static JdwpError TGR_Parent(JdwpState*, Request& request, ExpandBuf* pReply) in TGR_Parent() argument
1150 ObjectId thread_group_id = request.ReadThreadGroupId(); in TGR_Parent()
1162 static JdwpError TGR_Children(JdwpState*, Request& request, ExpandBuf* pReply) in TGR_Children() argument
1164 ObjectId thread_group_id = request.ReadThreadGroupId(); in TGR_Children()
1186 static JdwpError AR_Length(JdwpState*, Request& request, ExpandBuf* pReply) in AR_Length() argument
1188 ObjectId array_id = request.ReadArrayId(); in AR_Length()
1205 static JdwpError AR_GetValues(JdwpState*, Request& request, ExpandBuf* pReply) in AR_GetValues() argument
1207 ObjectId array_id = request.ReadArrayId(); in AR_GetValues()
1208 uint32_t offset = request.ReadUnsigned32("offset"); in AR_GetValues()
1209 uint32_t length = request.ReadUnsigned32("length"); in AR_GetValues()
1216 static JdwpError AR_SetValues(JdwpState*, Request& request, ExpandBuf*) in AR_SetValues() argument
1218 ObjectId array_id = request.ReadArrayId(); in AR_SetValues()
1219 uint32_t offset = request.ReadUnsigned32("offset"); in AR_SetValues()
1220 uint32_t count = request.ReadUnsigned32("count"); in AR_SetValues()
1221 return Dbg::SetArrayElements(array_id, offset, count, request); in AR_SetValues()
1224 static JdwpError CLR_VisibleClasses(JdwpState*, Request& request, ExpandBuf* pReply) in CLR_VisibleClasses() argument
1226 request.ReadObjectId(); // classLoaderObject in CLR_VisibleClasses()
1238 static JdwpError ER_Set(JdwpState* state, Request& request, ExpandBuf* pReply) in ER_Set() argument
1240 JdwpEventKind event_kind = request.ReadEnum1<JdwpEventKind>("event kind"); in ER_Set()
1241 JdwpSuspendPolicy suspend_policy = request.ReadEnum1<JdwpSuspendPolicy>("suspend policy"); in ER_Set()
1242 int32_t modifier_count = request.ReadSigned32("modifier count"); in ER_Set()
1257 mod.modKind = request.ReadModKind(); in ER_Set()
1262 uint32_t count = request.ReadUnsigned32("count"); in ER_Set()
1272 uint32_t exprId = request.ReadUnsigned32("expr id"); in ER_Set()
1279 ObjectId thread_id = request.ReadThreadId(); in ER_Set()
1286 RefTypeId class_id = request.ReadRefTypeId(); in ER_Set()
1294 std::string pattern(request.ReadUtf8String()); in ER_Set()
1303 std::string pattern(request.ReadUtf8String()); in ER_Set()
1311 JdwpLocation location = request.ReadLocation(); in ER_Set()
1318 mod.exceptionOnly.refTypeId = request.ReadRefTypeId(); // null => all exceptions. in ER_Set()
1319 mod.exceptionOnly.caught = request.ReadEnum1<uint8_t>("caught"); in ER_Set()
1320 mod.exceptionOnly.uncaught = request.ReadEnum1<uint8_t>("uncaught"); in ER_Set()
1326 RefTypeId declaring = request.ReadRefTypeId(); in ER_Set()
1327 FieldId fieldId = request.ReadFieldId(); in ER_Set()
1335 ObjectId thread_id = request.ReadThreadId(); in ER_Set()
1336 uint32_t size = request.ReadUnsigned32("step size"); in ER_Set()
1337 uint32_t depth = request.ReadUnsigned32("step depth"); in ER_Set()
1349 ObjectId instance = request.ReadObjectId(); in ER_Set()
1379 static JdwpError ER_Clear(JdwpState* state, Request& request, ExpandBuf*) in ER_Clear() argument
1381 request.ReadEnum1<JdwpEventKind>("event kind"); in ER_Clear()
1382 uint32_t requestId = request.ReadUnsigned32("request id"); in ER_Clear()
1393 static JdwpError SF_GetValues(JdwpState*, Request& request, ExpandBuf* pReply) in SF_GetValues() argument
1395 ObjectId thread_id = request.ReadThreadId(); in SF_GetValues()
1396 FrameId frame_id = request.ReadFrameId(); in SF_GetValues()
1397 int32_t slot_count = request.ReadSigned32("slot count"); in SF_GetValues()
1401 uint32_t slot = request.ReadUnsigned32("slot"); in SF_GetValues()
1402 JDWP::JdwpTag reqSigByte = request.ReadTag(); in SF_GetValues()
1417 static JdwpError SF_SetValues(JdwpState*, Request& request, ExpandBuf*) in SF_SetValues() argument
1419 ObjectId thread_id = request.ReadThreadId(); in SF_SetValues()
1420 FrameId frame_id = request.ReadFrameId(); in SF_SetValues()
1421 int32_t slot_count = request.ReadSigned32("slot count"); in SF_SetValues()
1424 uint32_t slot = request.ReadUnsigned32("slot"); in SF_SetValues()
1425 JDWP::JdwpTag sigByte = request.ReadTag(); in SF_SetValues()
1427 uint64_t value = request.ReadValue(width); in SF_SetValues()
1436 static JdwpError SF_ThisObject(JdwpState*, Request& request, ExpandBuf* reply) in SF_ThisObject() argument
1438 ObjectId thread_id = request.ReadThreadId(); in SF_ThisObject()
1439 FrameId frame_id = request.ReadFrameId(); in SF_ThisObject()
1457 static JdwpError COR_ReflectedType(JdwpState*, Request& request, ExpandBuf* pReply) in COR_ReflectedType() argument
1459 RefTypeId class_object_id = request.ReadRefTypeId(); in COR_ReflectedType()
1466 static JdwpError DDM_Chunk(JdwpState* state, Request& request, ExpandBuf* pReply) in DDM_Chunk() argument
1471 if (Dbg::DdmHandlePacket(request, &replyBuf, &replyLen)) { in DDM_Chunk()
1487 typedef JdwpError (*JdwpRequestHandler)(JdwpState* state, Request& request, ExpandBuf* reply);
1630 static const char* GetCommandName(Request& request) { in GetCommandName() argument
1632 … if (gHandlers[i].cmdSet == request.GetCommandSet() && gHandlers[i].cmd == request.GetCommand()) { in GetCommandName()
1639 static std::string DescribeCommand(Request& request) { in DescribeCommand() argument
1642 result += GetCommandName(request); in DescribeCommand()
1643 result += StringPrintf(" (length=%d id=0x%06x)", request.GetLength(), request.GetId()); in DescribeCommand()
1652 void JdwpState::ProcessRequest(Request& request, ExpandBuf* pReply) { in ProcessRequest() argument
1655 if (request.GetCommandSet() != kJDWPDdmCmdSet) { in ProcessRequest()
1694 …if (gHandlers[i].cmdSet == request.GetCommandSet() && gHandlers[i].cmd == request.GetCommand() && … in ProcessRequest()
1695 VLOG(jdwp) << DescribeCommand(request); in ProcessRequest()
1696 result = (*gHandlers[i].func)(this, request, pReply); in ProcessRequest()
1698 request.CheckConsumed(); in ProcessRequest()
1704 LOG(ERROR) << "Command not implemented: " << DescribeCommand(request); in ProcessRequest()
1705 LOG(ERROR) << HexDump(request.data(), request.size()); in ProcessRequest()
1715 Set4BE(replyBuf + 4, request.GetId()); in ProcessRequest()
1724 CHECK_GT(expandBufGetLength(pReply), 0U) << GetCommandName(request) << " " << request.GetId(); in ProcessRequest()
1727 …VLOG(jdwp) << "REPLY: " << GetCommandName(request) << " " << result << " (length=" << respLen << "… in ProcessRequest()
1738 if (request.GetCommandSet() != kJDWPDdmCmdSet) { in ProcessRequest()