VirtualBox

Changeset 87594 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Feb 3, 2021 8:23:46 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142626
Message:

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

Location:
trunk/src/VBox/VMM/VMMR3
Files:
1 deleted
2 edited

Legend:

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

    r86755 r87594  
    149149                if (RT_SUCCESS(rc))
    150150                {
    151 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    152                     rc = dbgfR3BpInit(pVM);
    153 #else
    154151                    rc = dbgfR3BpInit(pUVM);
    155 #endif
    156152                    if (RT_SUCCESS(rc))
    157153                    {
     
    178174                            dbgfR3OSTermPart2(pUVM);
    179175                        }
    180 #ifdef VBOX_WITH_LOTS_OF_DBGF_BPS
    181176                        dbgfR3BpTerm(pUVM);
    182 #endif
    183177                    }
    184178                    dbgfR3AsTerm(pUVM);
     
    210204    dbgfR3PlugInTerm(pUVM);
    211205    dbgfR3OSTermPart2(pUVM);
    212 #ifdef VBOX_WITH_LOTS_OF_DBGF_BPS
    213206    dbgfR3BpTerm(pUVM);
    214 #endif
    215207    dbgfR3AsTerm(pUVM);
    216208    dbgfR3RegTerm(pUVM);
     
    785777     */
    786778    DBGFEVENT DbgEvent;
    787 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    788     RTUINT iBp = DbgEvent.u.Bp.hBp = pVCpu->dbgf.s.iActiveBp;
    789     pVCpu->dbgf.s.iActiveBp = ~0U;
    790     if (iBp != ~0U)
    791     {
    792         DbgEvent.enmCtx = DBGFEVENTCTX_RAW;
    793         return dbgfR3SendEventWaitEx(pVM, pVCpu, enmEvent, DBGFEVENTCTX_RAW, &DbgEvent.u, sizeof(DbgEvent.u.Bp));
    794     }
    795 #else
    796779    DbgEvent.u.Bp.hBp = pVCpu->dbgf.s.hBpActive;
    797780    pVCpu->dbgf.s.hBpActive = NIL_DBGFBP;
     
    801784        return dbgfR3SendEventWaitEx(pVM, pVCpu, enmEvent, DBGFEVENTCTX_RAW, &DbgEvent.u, sizeof(DbgEvent.u.Bp));
    802785    }
    803 #endif
    804 
    805 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    806     AssertFailed(); /** @todo this should be obsolete now...   */
    807 
    808     /* REM breakpoints has be been searched for. */
    809 #if 0   /** @todo get flat PC api! */
    810     uint32_t eip = CPUMGetGuestEIP(pVM);
    811 #else
    812     PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(pVCpu);
    813     RTGCPTR  eip = pCtx->rip + pCtx->cs.u64Base;
    814 #endif
    815     for (size_t i = 0; i < RT_ELEMENTS(pVM->dbgf.s.aBreakpoints); i++)
    816         if (    pVM->dbgf.s.aBreakpoints[i].enmType == DBGFBPTYPE_REM
    817             &&  pVM->dbgf.s.aBreakpoints[i].u.Rem.GCPtr == eip)
    818         {
    819             DbgEvent.u.Bp.hBp = pVM->dbgf.s.aBreakpoints[i].iBp;
    820             break;
    821         }
    822     AssertMsg(DbgEvent.u.Bp.hBp != ~0U, ("eip=%08x\n", eip));
    823     return dbgfR3SendEventWaitEx(pVM, pVCpu, enmEvent, DBGFEVENTCTX_REM, &DbgEvent.u, sizeof(DbgEvent.u.Bp));
    824 #else
     786
    825787    return VERR_DBGF_IPE_1;
    826 #endif
    827788}
    828789
  • trunk/src/VBox/VMM/VMMR3/EM.cpp

    r87130 r87594  
    839839
    840840            case VINF_EM_DBG_BREAKPOINT:
    841 #ifdef VBOX_WITH_LOTS_OF_DBGF_BPS
    842841                rc = DBGFR3BpHit(pVM, pVCpu);
    843 #else
    844                 rc = DBGFR3EventBreakpoint(pVM, DBGFEVENT_BREAKPOINT);
    845 #endif
    846842                break;
    847843
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