VirtualBox

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


Ignore:
Timestamp:
Feb 3, 2021 8:23:46 PM (4 years ago)
Author:
vboxsync
Message:

VMM/DBGF,Debugger: Removed the !defined(VBOX_WITH_LOTS_OF_DBGF_BPS) code. bugref:9837

Location:
trunk/src/VBox/Debugger
Files:
3 edited

Legend:

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

    r86755 r87594  
    945945
    946946
    947 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    948 /**
    949  * Breakpoint enumeration callback function.
    950  *
    951  * @returns VBox status code. Any failure will stop the enumeration.
    952  * @param   pUVM        The user mode VM handle.
    953  * @param   pvUser      The user argument.
    954  * @param   pBp         Pointer to the breakpoint information. (readonly)
    955  */
    956 static DECLCALLBACK(int) dbgcEnumBreakpointsCallback(PUVM pUVM, void *pvUser, PCDBGFBP pBp)
    957 #else
    958947/**
    959948 * Breakpoint enumeration callback function.
     
    966955 */
    967956static DECLCALLBACK(int) dbgcEnumBreakpointsCallback(PUVM pUVM, void *pvUser, DBGFBP hBp, PCDBGFBPPUB pBp)
    968 #endif
    969957{
    970958    PDBGC   pDbgc   = (PDBGC)pvUser;
    971 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    972     PDBGCBP pDbgcBp = dbgcBpGet(pDbgc, pBp->iBp);
    973 #else
    974959    PDBGCBP pDbgcBp = dbgcBpGet(pDbgc, hBp);
    975 #endif
    976960
    977961    /*
    978962     * BP type and size.
    979963     */
    980 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    981     DBGCCmdHlpPrintf(&pDbgc->CmdHlp, "%#4x %c ", pBp->iBp, pBp->fEnabled ? 'e' : 'd');
    982 #else
    983964    DBGCCmdHlpPrintf(&pDbgc->CmdHlp, "%#4x %c ", hBp, DBGF_BP_PUB_IS_ENABLED(pBp->fFlagsAndType) ? 'e' : 'd');
    984 #endif
    985965    bool fHasAddress = false;
    986 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    987     switch (pBp->enmType)
    988 #else
    989966    switch (DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType))
    990 #endif
    991967    {
    992968        case DBGFBPTYPE_INT3:
     
    1011987        }
    1012988
    1013 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    1014         case DBGFBPTYPE_REM:
    1015             DBGCCmdHlpPrintf(&pDbgc->CmdHlp, " r %RGv", pBp->u.Rem.GCPtr);
    1016             fHasAddress = true;
    1017             break;
    1018 #endif
    1019 
    1020989/** @todo realign the list when I/O and MMIO breakpoint command have been added and it's possible to test this code. */
    1021990        case DBGFBPTYPE_PORT_IO:
    1022991        case DBGFBPTYPE_MMIO:
    1023992        {
    1024 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    1025             uint32_t fAccess = pBp->enmType == DBGFBPTYPE_PORT_IO ? pBp->u.PortIo.fAccess : pBp->u.Mmio.fAccess;
    1026             DBGCCmdHlpPrintf(&pDbgc->CmdHlp, pBp->enmType == DBGFBPTYPE_PORT_IO ?  " i" : " m");
    1027 #else
    1028993            uint32_t fAccess = DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType) == DBGFBPTYPE_PORT_IO ? pBp->u.PortIo.fAccess : pBp->u.Mmio.fAccess;
    1029994            DBGCCmdHlpPrintf(&pDbgc->CmdHlp, DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType) == DBGFBPTYPE_PORT_IO ?  " i" : " m");
    1030 #endif
    1031995            DBGCCmdHlpPrintf(&pDbgc->CmdHlp, " %c%c%c%c%c%c",
    1032996                             fAccess & DBGFBPIOACCESS_READ_MASK   ? 'r' : '-',
     
    10431007                             fAccess & DBGFBPIOACCESS_WRITE_QWORD ? '8' : '-',
    10441008                             fAccess & DBGFBPIOACCESS_WRITE_OTHER ? '+' : '-');
    1045 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    1046             if (pBp->enmType == DBGFBPTYPE_PORT_IO)
    1047 #else
    10481009            if (DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType) == DBGFBPTYPE_PORT_IO)
    1049 #endif
    10501010                DBGCCmdHlpPrintf(&pDbgc->CmdHlp, " %04x-%04x",
    10511011                                 pBp->u.PortIo.uPort, pBp->u.PortIo.uPort + pBp->u.PortIo.cPorts - 1);
     
    10561016
    10571017        default:
    1058 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    1059             DBGCCmdHlpPrintf(&pDbgc->CmdHlp, " unknown type %d!!", pBp->enmType);
    1060 #else
    10611018            DBGCCmdHlpPrintf(&pDbgc->CmdHlp, " unknown type %d!!", DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType));
    1062 #endif
    10631019            AssertFailed();
    10641020            break;
  • trunk/src/VBox/Debugger/DBGCRemoteKd.cpp

    r87580 r87594  
    11601160typedef struct KDCTXHWBP
    11611161{
    1162 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    1163     /** The DBGF breakpoint handle if active, UINT32_MAX if not active. */
    1164     uint32_t                    hDbgfBp;
    1165 #else
    11661162    /** The DBGF breakpoint handle if active, NIL_DBGFBP if not active. */
    11671163    DBGFBP                      hDbgfBp;
    1168 #endif
    11691164    /** The linear address of the breakpoint if active. */
    11701165    RTGCPTR                     GCPtrBp;
     
    12451240#define KD_PTR_GET(a_pThis, a_GCPtr) ((a_pThis)->f32Bit ? (a_GCPtr) & ~UINT64_C(0xffffffff00000000) : (a_GCPtr))
    12461241
    1247 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    1248 # define NIL_DBGFBP              ((uint32_t)UINT32_MAX)
    1249 #endif
    1250 
    12511242
    12521243/*********************************************************************************************************************************
    12531244*   Internal Functions                                                                                                           *
    12541245*********************************************************************************************************************************/
    1255 
    12561246static void dbgcKdCtxMsgSend(PKDCTX pThis, bool fWarning, const char *pszMsg);
    12571247
  • trunk/src/VBox/Debugger/Makefile.kmk

    r86755 r87594  
    3535Debugger_TEMPLATE  = VBOXR3
    3636Debugger_DEFS      = IN_VMM_R3 IN_DBG_R3 IN_DIS
    37 ifdef VBOX_WITH_LOTS_OF_DBGF_BPS
    38 Debugger_DEFS     += VBOX_WITH_LOTS_OF_DBGF_BPS
    39 endif
    4037ifneq ($(KBUILD_TYPE),release)
    4138 Debugger_DEFS    += VBOX_WITH_DEBUGGER_TCP_BY_DEFAULT
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