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()
112 argTypes[i] = request.ReadTag(); in FinishInvoke()
114 argValues[i] = request.ReadValue(width); in FinishInvoke()
119 uint32_t options = request.ReadUnsigned32("InvokeOptions bit flags"); in FinishInvoke()
193 static JdwpError VM_ClassesBySignature(JdwpState*, Request& request, ExpandBuf* pReply) in VM_ClassesBySignature() argument
195 std::string classDescriptor(request.ReadUtf8String()); in VM_ClassesBySignature()
303 static JdwpError VM_Exit(JdwpState* state, Request& request, ExpandBuf*) in VM_Exit() argument
305 uint32_t exit_status = request.ReadUnsigned32("exit_status"); in VM_Exit()
316 static JdwpError VM_CreateString(JdwpState*, Request& request, ExpandBuf* pReply) in VM_CreateString() argument
318 std::string str(request.ReadUtf8String()); in VM_CreateString()
348 static JdwpError VM_DisposeObjects(JdwpState*, Request& request, ExpandBuf*) in VM_DisposeObjects() argument
350 size_t object_count = request.ReadUnsigned32("object_count"); in VM_DisposeObjects()
352 ObjectId object_id = request.ReadObjectId(); in VM_DisposeObjects()
353 uint32_t reference_count = request.ReadUnsigned32("reference_count"); in VM_DisposeObjects()
371 static JdwpError VM_CapabilitiesNew(JdwpState*, Request& request, ExpandBuf* reply) in VM_CapabilitiesNew() argument
374 VM_Capabilities(NULL, request, reply); in VM_CapabilitiesNew()
439 static JdwpError VM_InstanceCounts(JdwpState*, Request& request, ExpandBuf* pReply) in VM_InstanceCounts() argument
441 int32_t class_count = request.ReadSigned32("class count"); in VM_InstanceCounts()
447 class_ids.push_back(request.ReadRefTypeId()); in VM_InstanceCounts()
463 static JdwpError RT_Modifiers(JdwpState*, Request& request, ExpandBuf* pReply) in RT_Modifiers() argument
465 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_Modifiers()
472 static JdwpError RT_GetValues(JdwpState*, Request& request, ExpandBuf* pReply) in RT_GetValues() argument
474 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_GetValues()
475 int32_t field_count = request.ReadSigned32("field count"); in RT_GetValues()
478 FieldId fieldId = request.ReadFieldId(); in RT_GetValues()
490 static JdwpError RT_SourceFile(JdwpState*, Request& request, ExpandBuf* pReply) in RT_SourceFile() argument
492 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_SourceFile()
505 static JdwpError RT_Status(JdwpState*, Request& request, ExpandBuf* pReply) in RT_Status() argument
507 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_Status()
521 static JdwpError RT_Interfaces(JdwpState*, Request& request, ExpandBuf* pReply) in RT_Interfaces() argument
523 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_Interfaces()
530 static JdwpError RT_ClassObject(JdwpState*, Request& request, ExpandBuf* pReply) in RT_ClassObject() argument
532 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_ClassObject()
554 static JdwpError RT_Signature(JdwpState*, Request& request, ExpandBuf* pReply, bool with_generic) in RT_Signature() argument
556 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_Signature()
570 static JdwpError RT_Signature(JdwpState* state, Request& request, ExpandBuf* pReply) in RT_Signature() argument
572 return RT_Signature(state, request, pReply, false); in RT_Signature()
575 static JdwpError RT_SignatureWithGeneric(JdwpState* state, Request& request, ExpandBuf* pReply) in RT_SignatureWithGeneric() argument
577 return RT_Signature(state, request, pReply, true); in RT_SignatureWithGeneric()
584 static JdwpError RT_ClassLoader(JdwpState*, Request& request, ExpandBuf* pReply) in RT_ClassLoader() argument
586 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_ClassLoader()
594 static JdwpError RT_FieldsWithGeneric(JdwpState*, Request& request, ExpandBuf* pReply) in RT_FieldsWithGeneric() argument
596 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_FieldsWithGeneric()
601 static JdwpError RT_Fields(JdwpState*, Request& request, ExpandBuf* pReply) in RT_Fields() argument
603 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_Fields()
611 static JdwpError RT_MethodsWithGeneric(JdwpState*, Request& request, ExpandBuf* pReply) in RT_MethodsWithGeneric() argument
613 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_MethodsWithGeneric()
618 static JdwpError RT_Methods(JdwpState*, Request& request, ExpandBuf* pReply) in RT_Methods() argument
620 RefTypeId refTypeId = request.ReadRefTypeId(); in RT_Methods()
624 static JdwpError RT_Instances(JdwpState*, Request& request, ExpandBuf* reply) in RT_Instances() argument
626 RefTypeId class_id = request.ReadRefTypeId(); in RT_Instances()
627 int32_t max_count = request.ReadSigned32("max count"); in RT_Instances()
644 static JdwpError CT_Superclass(JdwpState*, Request& request, ExpandBuf* pReply) in CT_Superclass() argument
646 RefTypeId class_id = request.ReadRefTypeId(); in CT_Superclass()
659 static JdwpError CT_SetValues(JdwpState* , Request& request, ExpandBuf*) in CT_SetValues() argument
661 RefTypeId class_id = request.ReadRefTypeId(); in CT_SetValues()
662 int32_t values_count = request.ReadSigned32("values count"); in CT_SetValues()
667 FieldId fieldId = request.ReadFieldId(); in CT_SetValues()
670 uint64_t value = request.ReadValue(width); in CT_SetValues()
688 static JdwpError CT_InvokeMethod(JdwpState* state, Request& request, ExpandBuf* pReply) in CT_InvokeMethod() argument
690 RefTypeId class_id = request.ReadRefTypeId(); in CT_InvokeMethod()
691 ObjectId thread_id = request.ReadThreadId(); in CT_InvokeMethod()
692 MethodId method_id = request.ReadMethodId(); in CT_InvokeMethod()
694 return FinishInvoke(state, request, pReply, thread_id, 0, class_id, method_id, false); in CT_InvokeMethod()
704 static JdwpError CT_NewInstance(JdwpState* state, Request& request, ExpandBuf* pReply) in CT_NewInstance() argument
706 RefTypeId class_id = request.ReadRefTypeId(); in CT_NewInstance()
707 ObjectId thread_id = request.ReadThreadId(); in CT_NewInstance()
708 MethodId method_id = request.ReadMethodId(); in CT_NewInstance()
718 return FinishInvoke(state, request, pReply, thread_id, object_id, class_id, method_id, true); in CT_NewInstance()
724 static JdwpError AT_newInstance(JdwpState*, Request& request, ExpandBuf* pReply) in AT_newInstance() argument
726 RefTypeId arrayTypeId = request.ReadRefTypeId(); in AT_newInstance()
727 int32_t length = request.ReadSigned32("length"); in AT_newInstance()
745 static JdwpError M_LineTable(JdwpState*, Request& request, ExpandBuf* pReply) in M_LineTable() argument
747 RefTypeId refTypeId = request.ReadRefTypeId(); in M_LineTable()
748 MethodId method_id = request.ReadMethodId(); in M_LineTable()
755 static JdwpError M_VariableTable(JdwpState*, Request& request, ExpandBuf* pReply, in M_VariableTable() argument
758 RefTypeId class_id = request.ReadRefTypeId(); in M_VariableTable()
759 MethodId method_id = request.ReadMethodId(); in M_VariableTable()
769 static JdwpError M_VariableTable(JdwpState* state, Request& request, ExpandBuf* pReply) in M_VariableTable() argument
771 return M_VariableTable(state, request, pReply, false); in M_VariableTable()
774 static JdwpError M_VariableTableWithGeneric(JdwpState* state, Request& request, ExpandBuf* pReply) in M_VariableTableWithGeneric() argument
776 return M_VariableTable(state, request, pReply, true); in M_VariableTableWithGeneric()
779 static JdwpError M_Bytecodes(JdwpState*, Request& request, ExpandBuf* reply) in M_Bytecodes() argument
781 RefTypeId class_id = request.ReadRefTypeId(); in M_Bytecodes()
782 MethodId method_id = request.ReadMethodId(); in M_Bytecodes()
805 static JdwpError OR_ReferenceType(JdwpState*, Request& request, ExpandBuf* pReply) in OR_ReferenceType() argument
807 ObjectId object_id = request.ReadObjectId(); in OR_ReferenceType()
814 static JdwpError OR_GetValues(JdwpState*, Request& request, ExpandBuf* pReply) in OR_GetValues() argument
816 ObjectId object_id = request.ReadObjectId(); in OR_GetValues()
817 int32_t field_count = request.ReadSigned32("field count"); in OR_GetValues()
821 FieldId fieldId = request.ReadFieldId(); in OR_GetValues()
834 static JdwpError OR_SetValues(JdwpState*, Request& request, ExpandBuf*) in OR_SetValues() argument
836 ObjectId object_id = request.ReadObjectId(); in OR_SetValues()
837 int32_t field_count = request.ReadSigned32("field count"); in OR_SetValues()
840 FieldId fieldId = request.ReadFieldId(); in OR_SetValues()
844 uint64_t value = request.ReadValue(width); in OR_SetValues()
856 static JdwpError OR_MonitorInfo(JdwpState*, Request& request, ExpandBuf* reply) in OR_MonitorInfo() argument
858 ObjectId object_id = request.ReadObjectId(); in OR_MonitorInfo()
873 static JdwpError OR_InvokeMethod(JdwpState* state, Request& request, ExpandBuf* pReply) in OR_InvokeMethod() argument
875 ObjectId object_id = request.ReadObjectId(); in OR_InvokeMethod()
876 ObjectId thread_id = request.ReadThreadId(); in OR_InvokeMethod()
877 RefTypeId class_id = request.ReadRefTypeId(); in OR_InvokeMethod()
878 MethodId method_id = request.ReadMethodId(); in OR_InvokeMethod()
880 return FinishInvoke(state, request, pReply, thread_id, object_id, class_id, method_id, false); in OR_InvokeMethod()
883 static JdwpError OR_DisableCollection(JdwpState*, Request& request, ExpandBuf*) in OR_DisableCollection() argument
885 ObjectId object_id = request.ReadObjectId(); in OR_DisableCollection()
889 static JdwpError OR_EnableCollection(JdwpState*, Request& request, ExpandBuf*) in OR_EnableCollection() argument
891 ObjectId object_id = request.ReadObjectId(); in OR_EnableCollection()
895 static JdwpError OR_IsCollected(JdwpState*, Request& request, ExpandBuf* pReply) in OR_IsCollected() argument
897 ObjectId object_id = request.ReadObjectId(); in OR_IsCollected()
904 static JdwpError OR_ReferringObjects(JdwpState*, Request& request, ExpandBuf* reply) in OR_ReferringObjects() argument
906 ObjectId object_id = request.ReadObjectId(); in OR_ReferringObjects()
907 int32_t max_count = request.ReadSigned32("max count"); in OR_ReferringObjects()
924 static JdwpError SR_Value(JdwpState*, Request& request, ExpandBuf* pReply) in SR_Value() argument
926 ObjectId stringObject = request.ReadObjectId(); in SR_Value()
943 static JdwpError TR_Name(JdwpState*, Request& request, ExpandBuf* pReply) in TR_Name() argument
945 ObjectId thread_id = request.ReadThreadId(); in TR_Name()
964 static JdwpError TR_Suspend(JdwpState*, Request& request, ExpandBuf*) in TR_Suspend() argument
966 ObjectId thread_id = request.ReadThreadId(); in TR_Suspend()
983 static JdwpError TR_Resume(JdwpState*, Request& request, ExpandBuf*) in TR_Resume() argument
985 ObjectId thread_id = request.ReadThreadId(); in TR_Resume()
1001 static JdwpError TR_Status(JdwpState*, Request& request, ExpandBuf* pReply) in TR_Status() argument
1003 ObjectId thread_id = request.ReadThreadId(); in TR_Status()
1023 static JdwpError TR_ThreadGroup(JdwpState*, Request& request, ExpandBuf* pReply) in TR_ThreadGroup() argument
1025 ObjectId thread_id = request.ReadThreadId(); in TR_ThreadGroup()
1035 static JdwpError TR_Frames(JdwpState*, Request& request, ExpandBuf* pReply) in TR_Frames() argument
1037 ObjectId thread_id = request.ReadThreadId(); in TR_Frames()
1038 uint32_t start_frame = request.ReadUnsigned32("start frame"); in TR_Frames()
1039 uint32_t length = request.ReadUnsigned32("length"); in TR_Frames()
1067 static JdwpError TR_FrameCount(JdwpState*, Request& request, ExpandBuf* pReply) in TR_FrameCount() argument
1069 ObjectId thread_id = request.ReadThreadId(); in TR_FrameCount()
1081 static JdwpError TR_OwnedMonitors(Request& request, ExpandBuf* reply, bool with_stack_depths) in TR_OwnedMonitors() argument
1083 ObjectId thread_id = request.ReadThreadId(); in TR_OwnedMonitors()
1105 static JdwpError TR_OwnedMonitors(JdwpState*, Request& request, ExpandBuf* reply) in TR_OwnedMonitors() argument
1107 return TR_OwnedMonitors(request, reply, false); in TR_OwnedMonitors()
1110 static JdwpError TR_OwnedMonitorsStackDepthInfo(JdwpState*, Request& request, ExpandBuf* reply) in TR_OwnedMonitorsStackDepthInfo() argument
1112 return TR_OwnedMonitors(request, reply, true); in TR_OwnedMonitorsStackDepthInfo()
1115 static JdwpError TR_CurrentContendedMonitor(JdwpState*, Request& request, ExpandBuf* reply) in TR_CurrentContendedMonitor() argument
1117 ObjectId thread_id = request.ReadThreadId(); in TR_CurrentContendedMonitor()
1127 static JdwpError TR_Interrupt(JdwpState*, Request& request, ExpandBuf* reply) in TR_Interrupt() argument
1129 ObjectId thread_id = request.ReadThreadId(); in TR_Interrupt()
1139 static JdwpError TR_DebugSuspendCount(JdwpState*, Request& request, ExpandBuf* pReply) in TR_DebugSuspendCount() argument
1141 ObjectId thread_id = request.ReadThreadId(); in TR_DebugSuspendCount()
1150 static JdwpError TGR_Name(JdwpState*, Request& request, ExpandBuf* pReply) in TGR_Name() argument
1152 ObjectId thread_group_id = request.ReadThreadGroupId(); in TGR_Name()
1160 static JdwpError TGR_Parent(JdwpState*, Request& request, ExpandBuf* pReply) in TGR_Parent() argument
1162 ObjectId thread_group_id = request.ReadThreadGroupId(); in TGR_Parent()
1170 static JdwpError TGR_Children(JdwpState*, Request& request, ExpandBuf* pReply) in TGR_Children() argument
1172 ObjectId thread_group_id = request.ReadThreadGroupId(); in TGR_Children()
1179 static JdwpError AR_Length(JdwpState*, Request& request, ExpandBuf* pReply) in AR_Length() argument
1181 ObjectId array_id = request.ReadArrayId(); in AR_Length()
1198 static JdwpError AR_GetValues(JdwpState*, Request& request, ExpandBuf* pReply) in AR_GetValues() argument
1200 ObjectId array_id = request.ReadArrayId(); in AR_GetValues()
1201 uint32_t offset = request.ReadUnsigned32("offset"); in AR_GetValues()
1202 uint32_t length = request.ReadUnsigned32("length"); in AR_GetValues()
1209 static JdwpError AR_SetValues(JdwpState*, Request& request, ExpandBuf*) in AR_SetValues() argument
1211 ObjectId array_id = request.ReadArrayId(); in AR_SetValues()
1212 uint32_t offset = request.ReadUnsigned32("offset"); in AR_SetValues()
1213 uint32_t count = request.ReadUnsigned32("count"); in AR_SetValues()
1214 return Dbg::SetArrayElements(array_id, offset, count, request); in AR_SetValues()
1217 static JdwpError CLR_VisibleClasses(JdwpState*, Request& request, ExpandBuf* pReply) in CLR_VisibleClasses() argument
1219 request.ReadObjectId(); // classLoaderObject in CLR_VisibleClasses()
1231 static JdwpError ER_Set(JdwpState* state, Request& request, ExpandBuf* pReply) in ER_Set() argument
1233 JdwpEventKind event_kind = request.ReadEnum1<JdwpEventKind>("event kind"); in ER_Set()
1234 JdwpSuspendPolicy suspend_policy = request.ReadEnum1<JdwpSuspendPolicy>("suspend policy"); in ER_Set()
1235 int32_t modifier_count = request.ReadSigned32("modifier count"); in ER_Set()
1250 mod.modKind = request.ReadModKind(); in ER_Set()
1255 uint32_t count = request.ReadUnsigned32("count"); in ER_Set()
1265 uint32_t exprId = request.ReadUnsigned32("expr id"); in ER_Set()
1272 ObjectId thread_id = request.ReadThreadId(); in ER_Set()
1279 RefTypeId class_id = request.ReadRefTypeId(); in ER_Set()
1287 std::string pattern(request.ReadUtf8String()); in ER_Set()
1296 std::string pattern(request.ReadUtf8String()); in ER_Set()
1304 JdwpLocation location = request.ReadLocation(); in ER_Set()
1311 mod.exceptionOnly.refTypeId = request.ReadRefTypeId(); // null => all exceptions. in ER_Set()
1312 mod.exceptionOnly.caught = request.ReadEnum1<uint8_t>("caught"); in ER_Set()
1313 mod.exceptionOnly.uncaught = request.ReadEnum1<uint8_t>("uncaught"); in ER_Set()
1319 RefTypeId declaring = request.ReadRefTypeId(); in ER_Set()
1320 FieldId fieldId = request.ReadFieldId(); in ER_Set()
1328 ObjectId thread_id = request.ReadThreadId(); in ER_Set()
1329 uint32_t size = request.ReadUnsigned32("step size"); in ER_Set()
1330 uint32_t depth = request.ReadUnsigned32("step depth"); in ER_Set()
1342 ObjectId instance = request.ReadObjectId(); in ER_Set()
1374 static JdwpError ER_Clear(JdwpState* state, Request& request, ExpandBuf*) in ER_Clear() argument
1376 request.ReadEnum1<JdwpEventKind>("event kind"); in ER_Clear()
1377 uint32_t requestId = request.ReadUnsigned32("request id"); in ER_Clear()
1388 static JdwpError SF_GetValues(JdwpState*, Request& request, ExpandBuf* pReply) in SF_GetValues() argument
1390 return Dbg::GetLocalValues(&request, pReply); in SF_GetValues()
1396 static JdwpError SF_SetValues(JdwpState*, Request& request, ExpandBuf*) in SF_SetValues() argument
1398 return Dbg::SetLocalValues(&request); in SF_SetValues()
1401 static JdwpError SF_ThisObject(JdwpState*, Request& request, ExpandBuf* reply) in SF_ThisObject() argument
1403 ObjectId thread_id = request.ReadThreadId(); in SF_ThisObject()
1404 FrameId frame_id = request.ReadFrameId(); in SF_ThisObject()
1422 static JdwpError COR_ReflectedType(JdwpState*, Request& request, ExpandBuf* pReply) in COR_ReflectedType() argument
1424 RefTypeId class_object_id = request.ReadRefTypeId(); in COR_ReflectedType()
1431 static JdwpError DDM_Chunk(JdwpState* state, Request& request, ExpandBuf* pReply) in DDM_Chunk() argument
1436 if (Dbg::DdmHandlePacket(request, &replyBuf, &replyLen)) { in DDM_Chunk()
1452 typedef JdwpError (*JdwpRequestHandler)(JdwpState* state, Request& request, ExpandBuf* reply);
1595 static const char* GetCommandName(Request& request) { in GetCommandName() argument
1597 … if (gHandlers[i].cmdSet == request.GetCommandSet() && gHandlers[i].cmd == request.GetCommand()) { in GetCommandName()
1604 static std::string DescribeCommand(Request& request) { in DescribeCommand() argument
1607 result += GetCommandName(request); in DescribeCommand()
1608 result += StringPrintf(" (length=%zu id=0x%06x)", request.GetLength(), request.GetId()); in DescribeCommand()
1617 size_t JdwpState::ProcessRequest(Request& request, ExpandBuf* pReply) { in ProcessRequest() argument
1620 if (request.GetCommandSet() != kJDWPDdmCmdSet) { in ProcessRequest()
1665 …if (gHandlers[i].cmdSet == request.GetCommandSet() && gHandlers[i].cmd == request.GetCommand() && … in ProcessRequest()
1666 VLOG(jdwp) << DescribeCommand(request); in ProcessRequest()
1667 result = (*gHandlers[i].func)(this, request, pReply); in ProcessRequest()
1669 request.CheckConsumed(); in ProcessRequest()
1675 LOG(ERROR) << "Command not implemented: " << DescribeCommand(request); in ProcessRequest()
1676 LOG(ERROR) << HexDump(request.data(), request.size(), false, ""); in ProcessRequest()
1688 Set4BE(replyBuf + 4, request.GetId()); in ProcessRequest()
1692 CHECK_GT(expandBufGetLength(pReply), 0U) << GetCommandName(request) << " " << request.GetId(); in ProcessRequest()
1695 …VLOG(jdwp) << "REPLY: " << GetCommandName(request) << " " << result << " (length=" << respLen << "… in ProcessRequest()
1706 if (request.GetCommandSet() != kJDWPDdmCmdSet) { in ProcessRequest()