VirtualBox

Changeset 11941 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Sep 1, 2008 4:39:15 PM (16 years ago)
Author:
vboxsync
Message:

More logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/PATMSSM.cpp

    r11936 r11941  
    558558        pPatchRec->CoreOffset.Key    = patch.CoreOffset.Key;
    559559
    560         Log(("Restoring patch %VRv -> %VRv\n", pPatchRec->patch.pPrivInstrGC, pVM->patm.s.pPatchMemGC + pPatchRec->patch.pPatchBlockOffset));
     560        Log(("Restoring patch %VRv -> %VRv\n", pPatchRec->patch.pPrivInstrGC, patmInfo.pPatchMemGC + pPatchRec->patch.pPatchBlockOffset));
    561561        bool ret = RTAvloU32Insert(&pVM->patm.s.PatchLookupTreeHC->PatchTree, &pPatchRec->Core);
    562562        Assert(ret);
     
    645645            AssertRCReturn(rc, rc);
    646646        }
     647
     648#ifdef LOG_ENABLED
     649        if (    pPatchRec->patch.uState != PATCH_REFUSED
     650            &&  !(pPatchRec->patch.flags & PATMFL_INT3_REPLACEMENT))
     651        {
     652            pPatchRec->patch.pTempInfo = (PPATCHINFOTEMP)MMR3HeapAllocZ(pVM, MM_TAG_PATM_PATCH, sizeof(PATCHINFOTEMP));
     653            Log(("Patch code ----------------------------------------------------------\n"));
     654            patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(&pPatchRec->patch), PATCHCODE_PTR_GC(&pPatchRec->patch), patmr3DisasmCallback, &pPatchRec->patch);
     655            Log(("Patch code ends -----------------------------------------------------\n"));
     656            MMR3HeapFree(pPatchRec->patch.pTempInfo);
     657            pPatchRec->patch.pTempInfo = NULL;
     658        }
     659#endif
     660
    647661    }
    648662
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette