VirtualBox

Changeset 72562 in vbox for trunk


Ignore:
Timestamp:
Jun 15, 2018 11:32:28 AM (7 years ago)
Author:
vboxsync
Message:

EM: info exits: Adjusted RIP / CS:EIP formatting. bugref:9044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/EMR3Dbg.cpp

    r72560 r72562  
    230230        pHlp->pfnPrintf(pHlp,
    231231                        "CPU[%u]: VM-exit history:\n"
    232                         "   Exit No.:     TSC timestamp / delta    Flat RIP         Exit   Name\n"
     232                        "   Exit No.:     TSC timestamp / delta    RIP (Flat/*)      Exit    Name\n"
    233233                        , pVCpu->idCpu);
    234234
     
    265265            uPrevTimestamp = pEntry->uTimestamp;
    266266
     267            char szPC[32];
     268            if (!(pEntry->uFlagsAndType & (EMEXIT_F_CS_EIP | EMEXIT_F_UNFLATTENED_PC)))
     269                RTStrPrintf(szPC, sizeof(szPC), "%016RX64 ", pEntry->uFlatPC);
     270            else if (pEntry->uFlagsAndType & EMEXIT_F_UNFLATTENED_PC)
     271                RTStrPrintf(szPC, sizeof(szPC), "%016RX64*", pEntry->uFlatPC);
     272            else
     273                RTStrPrintf(szPC, sizeof(szPC), "%04x:%08RX32*   ", (uint32_t)(pEntry->uFlatPC >> 32), (uint32_t)pEntry->uFlatPC);
     274
    267275            /* Do the printing. */
    268276            if (pEntry->idxSlot == UINT32_MAX)
    269                 pHlp->pfnPrintf(pHlp, " %10RU64: %#018RX64/%+-9RI64 %016RX64 %#06x %s\n",
    270                                 idx, pEntry->uTimestamp, offDelta, pEntry->uFlatPC, pEntry->uFlagsAndType, pszExitName);
     277                pHlp->pfnPrintf(pHlp, " %10RU64: %#018RX64/%+-9RI64 %s %#07x %s\n",
     278                                idx, pEntry->uTimestamp, offDelta, szPC, pEntry->uFlagsAndType, pszExitName);
    271279            else
    272280            {
    273281                /** @todo more on this later */
    274                 pHlp->pfnPrintf(pHlp, " %10RU64: %#018RX64/%+-9RI64 %016RX64 %#06x %s slot=%#x\n",
    275                                 idx, pEntry->uTimestamp, offDelta, pEntry->uFlatPC, pEntry->uFlagsAndType, pszExitName,
    276                                 pEntry->idxSlot);
     282                pHlp->pfnPrintf(pHlp, " %10RU64: %#018RX64/%+-9RI64 %s %#07x %s slot=%#x\n",
     283                                idx, pEntry->uTimestamp, offDelta, szPC, pEntry->uFlagsAndType, pszExitName, pEntry->idxSlot);
    277284            }
    278285
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