VirtualBox

Changeset 87776 in vbox for trunk/src/VBox/Debugger


Ignore:
Timestamp:
Feb 17, 2021 12:21:16 PM (4 years ago)
Author:
vboxsync
Message:

dbgf.h,VMM/DBGF: A bit of cleanup on the public breakpoint structure and associated helpers, add new flags to indicate whether the breakpoint should hit before or after the instruction was executed, bugref:9837

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp

    r87594 r87776  
    962962     * BP type and size.
    963963     */
    964     DBGCCmdHlpPrintf(&pDbgc->CmdHlp, "%#4x %c ", hBp, DBGF_BP_PUB_IS_ENABLED(pBp->fFlagsAndType) ? 'e' : 'd');
     964    DBGCCmdHlpPrintf(&pDbgc->CmdHlp, "%#4x %c ", hBp, DBGF_BP_PUB_IS_ENABLED(pBp) ? 'e' : 'd');
    965965    bool fHasAddress = false;
    966     switch (DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType))
     966    switch (DBGF_BP_PUB_GET_TYPE(pBp))
    967967    {
    968968        case DBGFBPTYPE_INT3:
     
    991991        case DBGFBPTYPE_MMIO:
    992992        {
    993             uint32_t fAccess = DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType) == DBGFBPTYPE_PORT_IO ? pBp->u.PortIo.fAccess : pBp->u.Mmio.fAccess;
    994             DBGCCmdHlpPrintf(&pDbgc->CmdHlp, DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType) == DBGFBPTYPE_PORT_IO ?  " i" : " m");
     993            uint32_t fAccess = DBGF_BP_PUB_GET_TYPE(pBp) == DBGFBPTYPE_PORT_IO ? pBp->u.PortIo.fAccess : pBp->u.Mmio.fAccess;
     994            DBGCCmdHlpPrintf(&pDbgc->CmdHlp, DBGF_BP_PUB_GET_TYPE(pBp) == DBGFBPTYPE_PORT_IO ?  " i" : " m");
    995995            DBGCCmdHlpPrintf(&pDbgc->CmdHlp, " %c%c%c%c%c%c",
    996996                             fAccess & DBGFBPIOACCESS_READ_MASK   ? 'r' : '-',
     
    10071007                             fAccess & DBGFBPIOACCESS_WRITE_QWORD ? '8' : '-',
    10081008                             fAccess & DBGFBPIOACCESS_WRITE_OTHER ? '+' : '-');
    1009             if (DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType) == DBGFBPTYPE_PORT_IO)
     1009            if (DBGF_BP_PUB_GET_TYPE(pBp) == DBGFBPTYPE_PORT_IO)
    10101010                DBGCCmdHlpPrintf(&pDbgc->CmdHlp, " %04x-%04x",
    10111011                                 pBp->u.PortIo.uPort, pBp->u.PortIo.uPort + pBp->u.PortIo.cPorts - 1);
     
    10161016
    10171017        default:
    1018             DBGCCmdHlpPrintf(&pDbgc->CmdHlp, " unknown type %d!!", DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType));
     1018            DBGCCmdHlpPrintf(&pDbgc->CmdHlp, " unknown type %d!!", DBGF_BP_PUB_GET_TYPE(pBp));
    10191019            AssertFailed();
    10201020            break;
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