Lines Matching refs:request

88 static JdwpError RequestInvoke(JdwpState*, Request* request,  in RequestInvoke()  argument
94 int32_t arg_count = request->ReadSigned32("argument count"); in RequestInvoke()
106 argTypes[i] = request->ReadTag(); in RequestInvoke()
108 argValues[i] = request->ReadValue(width); in RequestInvoke()
113 uint32_t options = request->ReadUnsigned32("InvokeOptions bit flags"); in RequestInvoke()
118 JDWP::JdwpError error = Dbg::PrepareInvokeMethod(request->GetId(), thread_id, object_id, in RequestInvoke()
153 static JdwpError VM_ClassesBySignature(JdwpState*, Request* request, ExpandBuf* pReply) in VM_ClassesBySignature() argument
155 std::string classDescriptor(request->ReadUtf8String()); in VM_ClassesBySignature()
259 static JdwpError VM_Exit(JdwpState* state, Request* request, ExpandBuf*) in VM_Exit() argument
261 uint32_t exit_status = request->ReadUnsigned32("exit_status"); in VM_Exit()
272 static JdwpError VM_CreateString(JdwpState*, Request* request, ExpandBuf* pReply) in VM_CreateString() argument
274 std::string str(request->ReadUtf8String()); in VM_CreateString()
304 static JdwpError VM_DisposeObjects(JdwpState*, Request* request, ExpandBuf*) in VM_DisposeObjects() argument
306 size_t object_count = request->ReadUnsigned32("object_count"); in VM_DisposeObjects()
308 ObjectId object_id = request->ReadObjectId(); in VM_DisposeObjects()
309 uint32_t reference_count = request->ReadUnsigned32("reference_count"); in VM_DisposeObjects()
327 static JdwpError VM_CapabilitiesNew(JdwpState*, Request* request, ExpandBuf* reply) in VM_CapabilitiesNew() argument
330 VM_Capabilities(nullptr, request, reply); in VM_CapabilitiesNew()
395 static JdwpError VM_InstanceCounts(JdwpState*, Request* request, ExpandBuf* pReply) in VM_InstanceCounts() argument
397 int32_t class_count = request->ReadSigned32("class count"); in VM_InstanceCounts()
403 class_ids.push_back(request->ReadRefTypeId()); in VM_InstanceCounts()
419 static JdwpError RT_Modifiers(JdwpState*, Request* request, ExpandBuf* pReply) in RT_Modifiers() argument
421 RefTypeId refTypeId = request->ReadRefTypeId(); in RT_Modifiers()
428 static JdwpError RT_GetValues(JdwpState*, Request* request, ExpandBuf* pReply) in RT_GetValues() argument
430 RefTypeId refTypeId = request->ReadRefTypeId(); in RT_GetValues()
431 int32_t field_count = request->ReadSigned32("field count"); in RT_GetValues()
434 FieldId fieldId = request->ReadFieldId(); in RT_GetValues()
446 static JdwpError RT_SourceFile(JdwpState*, Request* request, ExpandBuf* pReply) in RT_SourceFile() argument
448 RefTypeId refTypeId = request->ReadRefTypeId(); in RT_SourceFile()
461 static JdwpError RT_Status(JdwpState*, Request* request, ExpandBuf* pReply) in RT_Status() argument
463 RefTypeId refTypeId = request->ReadRefTypeId(); in RT_Status()
477 static JdwpError RT_Interfaces(JdwpState*, Request* request, ExpandBuf* pReply) in RT_Interfaces() argument
479 RefTypeId refTypeId = request->ReadRefTypeId(); in RT_Interfaces()
486 static JdwpError RT_ClassObject(JdwpState*, Request* request, ExpandBuf* pReply) in RT_ClassObject() argument
488 RefTypeId refTypeId = request->ReadRefTypeId(); in RT_ClassObject()
502 static JdwpError RT_SourceDebugExtension(JdwpState*, Request* request, ExpandBuf* pReply) in RT_SourceDebugExtension() argument
505 RefTypeId refTypeId = request->ReadRefTypeId(); in RT_SourceDebugExtension()
515 static JdwpError RT_Signature(JdwpState*, Request* request, ExpandBuf* pReply, bool with_generic) in RT_Signature() argument
517 RefTypeId refTypeId = request->ReadRefTypeId(); 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
547 RefTypeId refTypeId = request->ReadRefTypeId(); in RT_ClassLoader()
555 static JdwpError RT_FieldsWithGeneric(JdwpState*, Request* request, ExpandBuf* pReply) in RT_FieldsWithGeneric() argument
557 RefTypeId refTypeId = request->ReadRefTypeId(); in RT_FieldsWithGeneric()
562 static JdwpError RT_Fields(JdwpState*, Request* request, ExpandBuf* pReply) in RT_Fields() argument
564 RefTypeId refTypeId = request->ReadRefTypeId(); in RT_Fields()
572 static JdwpError RT_MethodsWithGeneric(JdwpState*, Request* request, ExpandBuf* pReply) in RT_MethodsWithGeneric() argument
574 RefTypeId refTypeId = request->ReadRefTypeId(); in RT_MethodsWithGeneric()
579 static JdwpError RT_Methods(JdwpState*, Request* request, ExpandBuf* pReply) in RT_Methods() argument
581 RefTypeId refTypeId = request->ReadRefTypeId(); in RT_Methods()
585 static JdwpError RT_Instances(JdwpState*, Request* request, ExpandBuf* reply) in RT_Instances() argument
587 RefTypeId class_id = request->ReadRefTypeId(); in RT_Instances()
588 int32_t max_count = request->ReadSigned32("max count"); in RT_Instances()
605 static JdwpError CT_Superclass(JdwpState*, Request* request, ExpandBuf* pReply) in CT_Superclass() argument
607 RefTypeId class_id = request->ReadRefTypeId(); in CT_Superclass()
620 static JdwpError CT_SetValues(JdwpState* , Request* request, ExpandBuf*) in CT_SetValues() argument
622 RefTypeId class_id = request->ReadRefTypeId(); in CT_SetValues()
623 int32_t values_count = request->ReadSigned32("values count"); in CT_SetValues()
628 FieldId fieldId = request->ReadFieldId(); in CT_SetValues()
631 uint64_t value = request->ReadValue(width); in CT_SetValues()
649 static JdwpError CT_InvokeMethod(JdwpState* state, Request* request, in CT_InvokeMethod() argument
652 RefTypeId class_id = request->ReadRefTypeId(); in CT_InvokeMethod()
653 ObjectId thread_id = request->ReadThreadId(); in CT_InvokeMethod()
654 MethodId method_id = request->ReadMethodId(); in CT_InvokeMethod()
656 return RequestInvoke(state, request, thread_id, 0, class_id, method_id, false); in CT_InvokeMethod()
666 static JdwpError CT_NewInstance(JdwpState* state, Request* request, in CT_NewInstance() argument
669 RefTypeId class_id = request->ReadRefTypeId(); in CT_NewInstance()
670 ObjectId thread_id = request->ReadThreadId(); in CT_NewInstance()
671 MethodId method_id = request->ReadMethodId(); in CT_NewInstance()
678 return RequestInvoke(state, request, thread_id, object_id, class_id, method_id, true); in CT_NewInstance()
684 static JdwpError AT_newInstance(JdwpState*, Request* request, ExpandBuf* pReply) in AT_newInstance() argument
686 RefTypeId arrayTypeId = request->ReadRefTypeId(); in AT_newInstance()
687 int32_t length = request->ReadSigned32("length"); in AT_newInstance()
702 static JdwpError IT_InvokeMethod(JdwpState* state, Request* request, in IT_InvokeMethod() argument
705 RefTypeId class_id = request->ReadRefTypeId(); in IT_InvokeMethod()
706 ObjectId thread_id = request->ReadThreadId(); in IT_InvokeMethod()
707 MethodId method_id = request->ReadMethodId(); in IT_InvokeMethod()
709 return RequestInvoke(state, request, thread_id, 0, class_id, method_id, false); in IT_InvokeMethod()
715 static JdwpError M_LineTable(JdwpState*, Request* request, ExpandBuf* pReply) in M_LineTable() argument
717 RefTypeId refTypeId = request->ReadRefTypeId(); in M_LineTable()
718 MethodId method_id = request->ReadMethodId(); in M_LineTable()
725 static JdwpError M_VariableTable(JdwpState*, Request* request, ExpandBuf* pReply, in M_VariableTable() argument
728 RefTypeId class_id = request->ReadRefTypeId(); in M_VariableTable()
729 MethodId method_id = request->ReadMethodId(); 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()
749 static JdwpError M_Bytecodes(JdwpState*, Request* request, ExpandBuf* reply) in M_Bytecodes() argument
751 RefTypeId class_id = request->ReadRefTypeId(); in M_Bytecodes()
752 MethodId method_id = request->ReadMethodId(); in M_Bytecodes()
768 static JdwpError M_IsObsolete(JdwpState*, Request* request, ExpandBuf* reply) in M_IsObsolete() argument
770 request->ReadRefTypeId(); // unused reference type ID in M_IsObsolete()
771 MethodId id = request->ReadMethodId(); in M_IsObsolete()
783 static JdwpError OR_ReferenceType(JdwpState*, Request* request, ExpandBuf* pReply) in OR_ReferenceType() argument
785 ObjectId object_id = request->ReadObjectId(); in OR_ReferenceType()
792 static JdwpError OR_GetValues(JdwpState*, Request* request, ExpandBuf* pReply) in OR_GetValues() argument
794 ObjectId object_id = request->ReadObjectId(); in OR_GetValues()
795 int32_t field_count = request->ReadSigned32("field count"); in OR_GetValues()
799 FieldId fieldId = request->ReadFieldId(); in OR_GetValues()
812 static JdwpError OR_SetValues(JdwpState*, Request* request, ExpandBuf*) in OR_SetValues() argument
814 ObjectId object_id = request->ReadObjectId(); in OR_SetValues()
815 int32_t field_count = request->ReadSigned32("field count"); in OR_SetValues()
818 FieldId fieldId = request->ReadFieldId(); in OR_SetValues()
822 uint64_t value = request->ReadValue(width); in OR_SetValues()
834 static JdwpError OR_MonitorInfo(JdwpState*, Request* request, ExpandBuf* reply) in OR_MonitorInfo() argument
836 ObjectId object_id = request->ReadObjectId(); in OR_MonitorInfo()
851 static JdwpError OR_InvokeMethod(JdwpState* state, Request* request, in OR_InvokeMethod() argument
854 ObjectId object_id = request->ReadObjectId(); in OR_InvokeMethod()
855 ObjectId thread_id = request->ReadThreadId(); in OR_InvokeMethod()
856 RefTypeId class_id = request->ReadRefTypeId(); in OR_InvokeMethod()
857 MethodId method_id = request->ReadMethodId(); in OR_InvokeMethod()
859 return RequestInvoke(state, request, thread_id, object_id, class_id, method_id, false); in OR_InvokeMethod()
862 static JdwpError OR_DisableCollection(JdwpState*, Request* request, ExpandBuf*) in OR_DisableCollection() argument
864 ObjectId object_id = request->ReadObjectId(); in OR_DisableCollection()
868 static JdwpError OR_EnableCollection(JdwpState*, Request* request, ExpandBuf*) in OR_EnableCollection() argument
870 ObjectId object_id = request->ReadObjectId(); in OR_EnableCollection()
874 static JdwpError OR_IsCollected(JdwpState*, Request* request, ExpandBuf* pReply) in OR_IsCollected() argument
876 ObjectId object_id = request->ReadObjectId(); in OR_IsCollected()
883 static JdwpError OR_ReferringObjects(JdwpState*, Request* request, ExpandBuf* reply) in OR_ReferringObjects() argument
885 ObjectId object_id = request->ReadObjectId(); in OR_ReferringObjects()
886 int32_t max_count = request->ReadSigned32("max count"); in OR_ReferringObjects()
903 static JdwpError SR_Value(JdwpState*, Request* request, ExpandBuf* pReply) in SR_Value() argument
905 ObjectId stringObject = request->ReadObjectId(); in SR_Value()
922 static JdwpError TR_Name(JdwpState*, Request* request, ExpandBuf* pReply) in TR_Name() argument
924 ObjectId thread_id = request->ReadThreadId(); in TR_Name()
943 static JdwpError TR_Suspend(JdwpState*, Request* request, ExpandBuf*) in TR_Suspend() argument
945 ObjectId thread_id = request->ReadThreadId(); in TR_Suspend()
961 static JdwpError TR_Resume(JdwpState*, Request* request, ExpandBuf*) in TR_Resume() argument
963 ObjectId thread_id = request->ReadThreadId(); in TR_Resume()
977 static JdwpError TR_Status(JdwpState*, Request* request, ExpandBuf* pReply) in TR_Status() argument
979 ObjectId thread_id = request->ReadThreadId(); in TR_Status()
999 static JdwpError TR_ThreadGroup(JdwpState*, Request* request, ExpandBuf* pReply) in TR_ThreadGroup() argument
1001 ObjectId thread_id = request->ReadThreadId(); in TR_ThreadGroup()
1011 static JdwpError TR_Frames(JdwpState*, Request* request, ExpandBuf* pReply) in TR_Frames() argument
1013 ObjectId thread_id = request->ReadThreadId(); in TR_Frames()
1014 uint32_t start_frame = request->ReadUnsigned32("start frame"); in TR_Frames()
1015 uint32_t length = request->ReadUnsigned32("length"); in TR_Frames()
1043 static JdwpError TR_FrameCount(JdwpState*, Request* request, ExpandBuf* pReply) in TR_FrameCount() argument
1045 ObjectId thread_id = request->ReadThreadId(); in TR_FrameCount()
1057 static JdwpError TR_OwnedMonitors(Request* request, ExpandBuf* reply, bool with_stack_depths) in TR_OwnedMonitors() argument
1059 ObjectId thread_id = request->ReadThreadId(); in TR_OwnedMonitors()
1081 static JdwpError TR_OwnedMonitors(JdwpState*, Request* request, ExpandBuf* reply) in TR_OwnedMonitors() argument
1083 return TR_OwnedMonitors(request, reply, false); in TR_OwnedMonitors()
1086 static JdwpError TR_OwnedMonitorsStackDepthInfo(JdwpState*, Request* request, ExpandBuf* reply) in TR_OwnedMonitorsStackDepthInfo() argument
1088 return TR_OwnedMonitors(request, reply, true); in TR_OwnedMonitorsStackDepthInfo()
1091 static JdwpError TR_CurrentContendedMonitor(JdwpState*, Request* request, ExpandBuf* reply) in TR_CurrentContendedMonitor() argument
1093 ObjectId thread_id = request->ReadThreadId(); in TR_CurrentContendedMonitor()
1103 static JdwpError TR_Interrupt(JdwpState*, Request* request, ExpandBuf* reply ATTRIBUTE_UNUSED) in TR_Interrupt() argument
1105 ObjectId thread_id = request->ReadThreadId(); in TR_Interrupt()
1115 static JdwpError TR_DebugSuspendCount(JdwpState*, Request* request, ExpandBuf* pReply) in TR_DebugSuspendCount() argument
1117 ObjectId thread_id = request->ReadThreadId(); in TR_DebugSuspendCount()
1126 static JdwpError TGR_Name(JdwpState*, Request* request, ExpandBuf* pReply) in TGR_Name() argument
1128 ObjectId thread_group_id = request->ReadThreadGroupId(); in TGR_Name()
1136 static JdwpError TGR_Parent(JdwpState*, Request* request, ExpandBuf* pReply) in TGR_Parent() argument
1138 ObjectId thread_group_id = request->ReadThreadGroupId(); in TGR_Parent()
1146 static JdwpError TGR_Children(JdwpState*, Request* request, ExpandBuf* pReply) in TGR_Children() argument
1148 ObjectId thread_group_id = request->ReadThreadGroupId(); in TGR_Children()
1155 static JdwpError AR_Length(JdwpState*, Request* request, ExpandBuf* pReply) in AR_Length() argument
1157 ObjectId array_id = request->ReadArrayId(); in AR_Length()
1174 static JdwpError AR_GetValues(JdwpState*, Request* request, ExpandBuf* pReply) in AR_GetValues() argument
1176 ObjectId array_id = request->ReadArrayId(); in AR_GetValues()
1177 uint32_t offset = request->ReadUnsigned32("offset"); in AR_GetValues()
1178 uint32_t length = request->ReadUnsigned32("length"); in AR_GetValues()
1185 static JdwpError AR_SetValues(JdwpState*, Request* request, ExpandBuf*) in AR_SetValues() argument
1187 ObjectId array_id = request->ReadArrayId(); in AR_SetValues()
1188 uint32_t offset = request->ReadUnsigned32("offset"); in AR_SetValues()
1189 uint32_t count = request->ReadUnsigned32("count"); in AR_SetValues()
1190 return Dbg::SetArrayElements(array_id, offset, count, request); in AR_SetValues()
1193 static JdwpError CLR_VisibleClasses(JdwpState*, Request* request, ExpandBuf* pReply) in CLR_VisibleClasses() argument
1195 request->ReadObjectId(); // classLoaderObject in CLR_VisibleClasses()
1214 static JdwpError ER_Set(JdwpState* state, Request* request, ExpandBuf* pReply) in ER_Set() argument
1216 JdwpEventKind event_kind = request->ReadEnum1<JdwpEventKind>("event kind"); in ER_Set()
1217 JdwpSuspendPolicy suspend_policy = request->ReadEnum1<JdwpSuspendPolicy>("suspend policy"); in ER_Set()
1218 int32_t modifier_count = request->ReadSigned32("modifier count"); in ER_Set()
1233 mod.modKind = request->ReadModKind(); in ER_Set()
1238 uint32_t count = request->ReadUnsigned32("count"); in ER_Set()
1248 uint32_t exprId = request->ReadUnsigned32("expr id"); in ER_Set()
1255 ObjectId thread_id = request->ReadThreadId(); in ER_Set()
1262 RefTypeId class_id = request->ReadRefTypeId(); in ER_Set()
1270 std::string pattern(request->ReadUtf8String()); in ER_Set()
1279 std::string pattern(request->ReadUtf8String()); in ER_Set()
1287 JdwpLocation location = request->ReadLocation(); in ER_Set()
1294 mod.exceptionOnly.refTypeId = request->ReadRefTypeId(); // null => all exceptions. in ER_Set()
1295 mod.exceptionOnly.caught = request->ReadEnum1<uint8_t>("caught"); in ER_Set()
1296 mod.exceptionOnly.uncaught = request->ReadEnum1<uint8_t>("uncaught"); in ER_Set()
1302 RefTypeId declaring = request->ReadRefTypeId(); in ER_Set()
1303 FieldId fieldId = request->ReadFieldId(); in ER_Set()
1311 ObjectId thread_id = request->ReadThreadId(); in ER_Set()
1312 uint32_t size = request->ReadUnsigned32("step size"); in ER_Set()
1313 uint32_t depth = request->ReadUnsigned32("step depth"); in ER_Set()
1325 ObjectId instance = request->ReadObjectId(); in ER_Set()
1357 static JdwpError ER_Clear(JdwpState* state, Request* request, ExpandBuf*) in ER_Clear() argument
1359 request->ReadEnum1<JdwpEventKind>("event kind"); in ER_Clear()
1360 uint32_t requestId = request->ReadUnsigned32("request id"); in ER_Clear()
1371 static JdwpError SF_GetValues(JdwpState*, Request* request, ExpandBuf* pReply) in SF_GetValues() argument
1373 return Dbg::GetLocalValues(request, pReply); in SF_GetValues()
1379 static JdwpError SF_SetValues(JdwpState*, Request* request, ExpandBuf*) in SF_SetValues() argument
1381 return Dbg::SetLocalValues(request); in SF_SetValues()
1384 static JdwpError SF_ThisObject(JdwpState*, Request* request, ExpandBuf* reply) in SF_ThisObject() argument
1386 ObjectId thread_id = request->ReadThreadId(); in SF_ThisObject()
1387 FrameId frame_id = request->ReadFrameId(); in SF_ThisObject()
1405 static JdwpError COR_ReflectedType(JdwpState*, Request* request, ExpandBuf* pReply) in COR_ReflectedType() argument
1407 RefTypeId class_object_id = request->ReadRefTypeId(); in COR_ReflectedType()
1414 static JdwpError DDM_Chunk(JdwpState* state, Request* request, ExpandBuf* pReply) in DDM_Chunk() argument
1419 if (Dbg::DdmHandlePacket(request, &replyBuf, &replyLen)) { in DDM_Chunk()
1435 using JdwpRequestHandler = JdwpError(*)(JdwpState* state, Request* request, ExpandBuf* reply);
1579 static const char* GetCommandName(Request* request) { in GetCommandName() argument
1581 if (gHandlers[i].cmdSet == request->GetCommandSet() && in GetCommandName()
1582 gHandlers[i].cmd == request->GetCommand()) { in GetCommandName()
1589 static std::string DescribeCommand(Request* request) { in DescribeCommand() argument
1592 result += GetCommandName(request); in DescribeCommand()
1593 result += StringPrintf(" (length=%zu id=0x%06x)", request->GetLength(), request->GetId()); in DescribeCommand()
1617 size_t JdwpState::ProcessRequest(Request* request, ExpandBuf* pReply, bool* skip_reply) { in ProcessRequest() argument
1621 if (request->GetCommandSet() != kJDWPDdmCmdSet) { in ProcessRequest()
1654 if (gHandlers[i].cmdSet == request->GetCommandSet() && in ProcessRequest()
1655 gHandlers[i].cmd == request->GetCommand() && in ProcessRequest()
1657 VLOG(jdwp) << DescribeCommand(request); in ProcessRequest()
1658 result = (*gHandlers[i].func)(this, request, pReply); in ProcessRequest()
1660 request->CheckConsumed(); in ProcessRequest()
1667 LOG(ERROR) << "Command not implemented: " << DescribeCommand(request); in ProcessRequest()
1668 LOG(ERROR) << HexDump(request->data(), request->size(), false, ""); in ProcessRequest()
1673 if (result == ERR_NONE && IsInvokeCommand(request->GetCommandSet(), request->GetCommand())) { in ProcessRequest()
1686 Set4BE(replyBuf + kJDWPHeaderIdOffset, request->GetId()); in ProcessRequest()
1690 CHECK_GT(expandBufGetLength(pReply), 0U) << GetCommandName(request) << " " << request->GetId(); in ProcessRequest()
1693 …VLOG(jdwp) << "REPLY: " << GetCommandName(request) << " " << result << " (length=" << respLen << "… in ProcessRequest()
1705 if (request->GetCommandSet() != kJDWPDdmCmdSet) { in ProcessRequest()