Lines Matching defs:pRec
152 PPATMPATCHREC pRec;
189 pRec = patmQueryFunctionPatch(pVM, (RTRCPTR)pRegFrame->edx);
190 if (pRec)
192 if (pRec->patch.uState == PATCH_ENABLED)
194 RTGCUINTPTR pRelAddr = pRec->patch.pPatchBlockOffset; /* make it relative */
198 Log(("Patch block %RRv called as function\n", pRec->patch.pPrivInstrGC));
199 pRec->patch.flags |= PATMFL_CODE_REFERENCED;
455 PPATMPATCHREC pRec;
471 pRec = (PPATMPATCHREC)RTAvloU32Get(&CTXSUFF(pVM->patm.s.PatchLookupTree)->PatchTree, (AVLOU32KEY)(pRegFrame->eip - 1)); /* eip is pointing to the instruction *after* 'int 3' already */
472 if (pRec && pRec->patch.uState == PATCH_ENABLED)
474 if (pRec->patch.flags & PATMFL_INT3_REPLACEMENT_BLOCK)
476 Assert(pRec->patch.opcode == OP_CLI);
478 pRegFrame->eip = (uint32_t)PATCHCODE_PTR_GC(&pRec->patch);
482 if (pRec->patch.flags & PATMFL_INT3_REPLACEMENT)
487 PATM_STAT_RUN_INC(&pRec->patch);
489 Log(("PATMHandleInt3PatchTrap found int3 for %s at %x\n", patmGetInstructionString(pRec->patch.opcode, 0), pRegFrame->eip));
491 switch(pRec->patch.opcode)
513 PATM_STAT_FAULT_INC(&pRec->patch);
514 pRec->patch.cTraps++;
529 pRec->patch.aPrivInstr, pRec->patch.cbPrivInstr);
534 rc = DISInstr(&pRec->patch.aPrivInstr[0], enmCpuMode, &cpu, &cbOp);
538 PATM_STAT_FAULT_INC(&pRec->patch);
539 pRec->patch.cTraps++;
549 PATM_STAT_FAULT_INC(&pRec->patch);
550 pRec->patch.cTraps++;