Lines Matching full:preq
598 DebugInvokeReq* pReq = dvmDbgGetInvokeReq();
600 pReq->ready = true;
602 pReq->ready = false;
608 if (!pReq->invokeNeeded) {
616 /* leave pReq->invokeNeeded raised so we can check reentrancy */
618 dvmDbgExecuteMethod(pReq);
620 pReq->err = ERR_NONE;
623 pReq->invokeNeeded = false;
626 dvmDbgLockMutex(&pReq->lock);
627 dvmDbgCondSignal(&pReq->cv);
628 dvmDbgUnlockMutex(&pReq->lock);
641 DebugInvokeReq* pReq = dvmDbgGetInvokeReq();
642 return pReq->invokeNeeded;
710 ExpandBuf* pReq;
712 pReq = expandBufAlloc();
713 expandBufAddSpace(pReq, kJDWPHeaderLen);
715 return pReq;
721 * Takes ownership of "pReq" (currently discards it).
723 static void eventFinish(JdwpState* state, ExpandBuf* pReq)
725 u1* buf = expandBufGetBuffer(pReq);
727 set4BE(buf, expandBufGetLength(pReq));
733 dvmJdwpSendRequest(state, pReq);
735 expandBufFree(pReq);
760 ExpandBuf* pReq = NULL;
765 pReq = eventPrep();
766 expandBufAdd1(pReq, suspendPolicy);
767 expandBufAdd4BE(pReq, 1);
769 expandBufAdd1(pReq, EK_VM_START);
770 expandBufAdd4BE(pReq, 0); /* requestId */
771 expandBufAdd8BE(pReq, threadId);
777 if (pReq != NULL) {
782 eventFinish(state, pReq);
875 ExpandBuf* pReq = NULL;
889 pReq = eventPrep();
890 expandBufAdd1(pReq, suspendPolicy);
891 expandBufAdd4BE(pReq, matchCount);
894 expandBufAdd1(pReq, matchList[i]->eventKind);
895 expandBufAdd4BE(pReq, matchList[i]->requestId);
896 expandBufAdd8BE(pReq, basket.threadId);
897 dvmJdwpAddLocation(pReq, pLoc);
905 if (pReq != NULL) {
910 eventFinish(state, pReq);
959 ExpandBuf* pReq = NULL;
971 pReq = eventPrep();
972 expandBufAdd1(pReq, suspendPolicy);
973 expandBufAdd4BE(pReq, matchCount);
976 expandBufAdd1(pReq, matchList[i]->eventKind);
977 expandBufAdd4BE(pReq, matchList[i]->requestId);
978 expandBufAdd8BE(pReq, basket.threadId);
987 if (pReq != NULL) {
992 eventFinish(state, pReq);
1008 ExpandBuf* pReq;
1012 pReq = eventPrep();
1013 expandBufAdd1(pReq, SP_NONE);
1014 expandBufAdd4BE(pReq, 1);
1016 expandBufAdd1(pReq, EK_VM_DEATH);
1017 expandBufAdd4BE(pReq, 0);
1018 eventFinish(state, pReq);
1069 ExpandBuf* pReq = NULL;
1093 pReq = eventPrep();
1094 expandBufAdd1(pReq, suspendPolicy);
1095 expandBufAdd4BE(pReq, matchCount);
1098 expandBufAdd1(pReq, matchList[i]->eventKind);
1099 expandBufAdd4BE(pReq, matchList[i]->requestId);
1100 expandBufAdd8BE(pReq, basket.threadId);
1102 dvmJdwpAddLocation(pReq, pThrowLoc);
1103 expandBufAdd1(pReq, JT_OBJECT);
1104 expandBufAdd8BE(pReq, exceptionId);
1105 dvmJdwpAddLocation(pReq, pCatchLoc);
1116 if (pReq != NULL) {
1121 eventFinish(state, pReq);
1168 ExpandBuf* pReq = NULL;
1192 pReq = eventPrep();
1193 expandBufAdd1(pReq, suspendPolicy);
1194 expandBufAdd4BE(pReq, matchCount);
1197 expandBufAdd1(pReq, matchList[i]->eventKind);
1198 expandBufAdd4BE(pReq, matchList[i]->requestId);
1199 expandBufAdd8BE(pReq, basket.threadId);
1201 expandBufAdd1(pReq, tag);
1202 expandBufAdd8BE(pReq, refTypeId);
1203 expandBufAddUtf8String(pReq, (const u1*) signature);
1204 expandBufAdd4BE(pReq, status);
1213 if (pReq != NULL) {
1218 eventFinish(state, pReq);