VirtualBox

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


Ignore:
Timestamp:
Jun 18, 2008 2:51:45 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32159
Message:

Disassemble the current guest instruction when dumping the guest state.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/CPUM.cpp

    r9760 r9790  
    10301030    pHlp->pfnPrintf(pHlp, "Guest CPUM state: %s\n", pszComment);
    10311031    cpumR3InfoOne(pVM, &pVM->cpum.s.Guest, CPUMCTX2CORE(&pVM->cpum.s.Guest), pHlp, enmType, "");
     1032
     1033    char szInstruction[256];
     1034    int rc = DBGFR3DisasInstrCurrent(pVM, szInstruction, sizeof(szInstruction));
     1035    if (VBOX_SUCCESS(rc))
     1036        pHlp->pfnPrintf(pHlp, "\nCPUM: %s\n\n", szInstruction);
    10321037}
    10331038
     
    12581263
    12591264        pHlp->pfnPrintf(pHlp,
    1260                         "Family:                          %d  \tExtended: %d \tEffectiv: %d\n"
    1261                         "Model:                           %d  \tExtended: %d \tEffectiv: %d\n"
     1265                        "Family:                          %d  \tExtended: %d \tEffective: %d\n"
     1266                        "Model:                           %d  \tExtended: %d \tEffective: %d\n"
    12621267                        "Stepping:                        %d\n"
    12631268                        "APIC ID:                         %#04x\n"
     
    14351440        uint32_t uEAX = Guest.eax;
    14361441        pHlp->pfnPrintf(pHlp,
    1437                         "Family:                          %d  \tExtended: %d \tEffectiv: %d\n"
    1438                         "Model:                           %d  \tExtended: %d \tEffectiv: %d\n"
     1442                        "Family:                          %d  \tExtended: %d \tEffective: %d\n"
     1443                        "Model:                           %d  \tExtended: %d \tEffective: %d\n"
    14391444                        "Stepping:                        %d\n"
    14401445                        "Brand ID:                        %#05x\n",
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r9713 r9790  
    9090            rc = EMInterpretDisasOne(pVM, pRegFrame, &Cpu, &cbOp);
    9191            if (     RT_SUCCESS(rc)
    92                 &&   Cpu.mode == CPUMODE_32BIT
     92                &&   Cpu.mode == CPUMODE_32BIT  /* @todo why does this matter? */
    9393                &&  !(Cpu.prefix & (PREFIX_REPNE | PREFIX_REP | PREFIX_SEG)))
    9494            {
Note: See TracChangeset for help on using the changeset viewer.

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