Lines Matching defs:pReq
597 DebugInvokeReq* pReq = dvmDbgGetInvokeReq();
599 pReq->ready = true;
601 pReq->ready = false;
607 if (!pReq->invokeNeeded) {
615 /* leave pReq->invokeNeeded raised so we can check reentrancy */
617 dvmDbgExecuteMethod(pReq);
619 pReq->err = ERR_NONE;
622 pReq->invokeNeeded = false;
625 dvmDbgLockMutex(&pReq->lock);
626 dvmDbgCondSignal(&pReq->cv);
627 dvmDbgUnlockMutex(&pReq->lock);
640 DebugInvokeReq* pReq = dvmDbgGetInvokeReq();
641 return pReq->invokeNeeded;
709 ExpandBuf* pReq = expandBufAlloc();
710 expandBufAddSpace(pReq, kJDWPHeaderLen);
712 return pReq;
718 * Takes ownership of "pReq" (currently discards it).
720 static void eventFinish(JdwpState* state, ExpandBuf* pReq)
722 u1* buf = expandBufGetBuffer(pReq);
724 set4BE(buf, expandBufGetLength(pReq));
730 dvmJdwpSendRequest(state, pReq);
732 expandBufFree(pReq);
757 ExpandBuf* pReq = NULL;
762 pReq = eventPrep();
763 expandBufAdd1(pReq, suspendPolicy);
764 expandBufAdd4BE(pReq, 1);
766 expandBufAdd1(pReq, EK_VM_START);
767 expandBufAdd4BE(pReq, 0); /* requestId */
768 expandBufAdd8BE(pReq, threadId);
774 if (pReq != NULL) {
779 eventFinish(state, pReq);
870 ExpandBuf* pReq = NULL;
882 pReq = eventPrep();
883 expandBufAdd1(pReq, suspendPolicy);
884 expandBufAdd4BE(pReq, matchCount);
887 expandBufAdd1(pReq, matchList[i]->eventKind);
888 expandBufAdd4BE(pReq, matchList[i]->requestId);
889 expandBufAdd8BE(pReq, basket.threadId);
890 dvmJdwpAddLocation(pReq, pLoc);
898 if (pReq != NULL) {
903 eventFinish(state, pReq);
950 ExpandBuf* pReq = NULL;
960 pReq = eventPrep();
961 expandBufAdd1(pReq, suspendPolicy);
962 expandBufAdd4BE(pReq, matchCount);
965 expandBufAdd1(pReq, matchList[i]->eventKind);
966 expandBufAdd4BE(pReq, matchList[i]->requestId);
967 expandBufAdd8BE(pReq, basket.threadId);
976 if (pReq != NULL) {
981 eventFinish(state, pReq);
999 ExpandBuf* pReq = eventPrep();
1000 expandBufAdd1(pReq, SP_NONE);
1001 expandBufAdd4BE(pReq, 1);
1003 expandBufAdd1(pReq, EK_VM_DEATH);
1004 expandBufAdd4BE(pReq, 0);
1005 eventFinish(state, pReq);
1054 ExpandBuf* pReq = NULL;
1076 pReq = eventPrep();
1077 expandBufAdd1(pReq, suspendPolicy);
1078 expandBufAdd4BE(pReq, matchCount);
1081 expandBufAdd1(pReq, matchList[i]->eventKind);
1082 expandBufAdd4BE(pReq, matchList[i]->requestId);
1083 expandBufAdd8BE(pReq, basket.threadId);
1085 dvmJdwpAddLocation(pReq, pThrowLoc);
1086 expandBufAdd1(pReq, JT_OBJECT);
1087 expandBufAdd8BE(pReq, exceptionId);
1088 dvmJdwpAddLocation(pReq, pCatchLoc);
1099 if (pReq != NULL) {
1104 eventFinish(state, pReq);
1149 ExpandBuf* pReq = NULL;
1171 pReq = eventPrep();
1172 expandBufAdd1(pReq, suspendPolicy);
1173 expandBufAdd4BE(pReq, matchCount);
1176 expandBufAdd1(pReq, matchList[i]->eventKind);
1177 expandBufAdd4BE(pReq, matchList[i]->requestId);
1178 expandBufAdd8BE(pReq, basket.threadId);
1180 expandBufAdd1(pReq, tag);
1181 expandBufAdd8BE(pReq, refTypeId);
1182 expandBufAddUtf8String(pReq, (const u1*) signature);
1183 expandBufAdd4BE(pReq, status);
1192 if (pReq != NULL) {
1197 eventFinish(state, pReq);