Lines Matching defs:pReq
602 DebugInvokeReq* pReq = Dbg::GetInvokeReq();
604 pReq->ready = true;
606 pReq->ready = false;
612 if (!pReq->invoke_needed) {
620 /* leave pReq->invoke_needed_ raised so we can check reentrancy */
621 Dbg::ExecuteMethod(pReq);
623 pReq->error = ERR_NONE;
627 void JdwpState::SendRequestAndPossiblySuspend(ExpandBuf* pReq, JdwpSuspendPolicy suspend_policy,
632 if (pReq != NULL) {
638 EventFinish(pReq);
652 DebugInvokeReq* pReq = Dbg::GetInvokeReq();
653 return pReq->invoke_needed;
718 ExpandBuf* pReq = expandBufAlloc();
719 expandBufAddSpace(pReq, kJDWPHeaderLen);
720 return pReq;
726 * Takes ownership of "pReq" (currently discards it).
728 void JdwpState::EventFinish(ExpandBuf* pReq) {
729 uint8_t* buf = expandBufGetBuffer(pReq);
731 Set4BE(buf, expandBufGetLength(pReq));
742 SendRequest(pReq);
744 expandBufFree(pReq);
766 ExpandBuf* pReq = eventPrep();
773 expandBufAdd1(pReq, suspend_policy);
774 expandBufAdd4BE(pReq, 1);
776 expandBufAdd1(pReq, EK_VM_START);
777 expandBufAdd4BE(pReq, 0); /* requestId */
778 expandBufAdd8BE(pReq, threadId);
784 SendRequestAndPossiblySuspend(pReq, suspend_policy, threadId);
873 ExpandBuf* pReq = NULL;
908 pReq = eventPrep();
909 expandBufAdd1(pReq, suspend_policy);
910 expandBufAdd4BE(pReq, match_count);
913 expandBufAdd1(pReq, match_list[i]->eventKind);
914 expandBufAdd4BE(pReq, match_list[i]->requestId);
915 expandBufAdd8BE(pReq, thread_id);
916 expandBufAddLocation(pReq, jdwp_location);
918 Dbg::OutputMethodReturnValue(jdwp_location.method_id, returnValue, pReq);
931 SendRequestAndPossiblySuspend(pReq, suspend_policy, thread_id);
957 ExpandBuf* pReq = NULL;
993 pReq = eventPrep();
994 expandBufAdd1(pReq, suspend_policy);
995 expandBufAdd4BE(pReq, match_count);
1008 expandBufAdd1(pReq, match_list[i]->eventKind);
1009 expandBufAdd4BE(pReq, match_list[i]->requestId);
1010 expandBufAdd8BE(pReq, thread_id);
1011 expandBufAddLocation(pReq, jdwp_location);
1012 expandBufAdd1(pReq, type_tag);
1013 expandBufAddRefTypeId(pReq, field_type_id);
1014 expandBufAddFieldId(pReq, field_id);
1015 expandBufAdd1(pReq, tag);
1016 expandBufAddObjectId(pReq, instance_id);
1018 Dbg::OutputFieldValue(field_id, fieldValue, pReq);
1031 SendRequestAndPossiblySuspend(pReq, suspend_policy, thread_id);
1055 ExpandBuf* pReq = NULL;
1082 pReq = eventPrep();
1083 expandBufAdd1(pReq, suspend_policy);
1084 expandBufAdd4BE(pReq, match_count);
1087 expandBufAdd1(pReq, match_list[i]->eventKind);
1088 expandBufAdd4BE(pReq, match_list[i]->requestId);
1089 expandBufAdd8BE(pReq, thread_id);
1101 SendRequestAndPossiblySuspend(pReq, suspend_policy, thread_id);
1114 ExpandBuf* pReq = eventPrep();
1115 expandBufAdd1(pReq, SP_NONE);
1116 expandBufAdd4BE(pReq, 1);
1118 expandBufAdd1(pReq, EK_VM_DEATH);
1119 expandBufAdd4BE(pReq, 0);
1120 EventFinish(pReq);
1166 ExpandBuf* pReq = NULL;
1202 pReq = eventPrep();
1203 expandBufAdd1(pReq, suspend_policy);
1204 expandBufAdd4BE(pReq, match_count);
1207 expandBufAdd1(pReq, match_list[i]->eventKind);
1208 expandBufAdd4BE(pReq, match_list[i]->requestId);
1209 expandBufAdd8BE(pReq, thread_id);
1210 expandBufAddLocation(pReq, jdwp_throw_location);
1211 expandBufAdd1(pReq, JT_OBJECT);
1212 expandBufAdd8BE(pReq, exceptionId);
1213 expandBufAddLocation(pReq, jdwp_catch_location);
1225 SendRequestAndPossiblySuspend(pReq, suspend_policy, thread_id);
1250 ExpandBuf* pReq = NULL;
1295 pReq = eventPrep();
1296 expandBufAdd1(pReq, suspend_policy);
1297 expandBufAdd4BE(pReq, match_count);
1300 expandBufAdd1(pReq, match_list[i]->eventKind);
1301 expandBufAdd4BE(pReq, match_list[i]->requestId);
1302 expandBufAdd8BE(pReq, thread_id);
1303 expandBufAdd1(pReq, tag);
1304 expandBufAdd8BE(pReq, class_id);
1305 expandBufAddUtf8String(pReq, signature);
1306 expandBufAdd4BE(pReq, status);
1318 SendRequestAndPossiblySuspend(pReq, suspend_policy, thread_id);