VirtualBox

Changeset 42833 in vbox for trunk


Ignore:
Timestamp:
Aug 15, 2012 11:28:35 PM (12 years ago)
Author:
vboxsync
Message:

DBGFR3EventBreakpoint: get REM breakpoint number from its DBGFBP::iBp.
It is set up by dbgfR3BpInit to account for consecutive numbering of
breakpoints, so we don't have to be leak those details here.

File:
1 edited

Legend:

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

    r41965 r42833  
    590590        RTGCPTR  eip = pCtx->rip + pCtx->cs.u64Base;
    591591#endif
    592         for (iBp = 0; iBp < RT_ELEMENTS(pVM->dbgf.s.aBreakpoints); iBp++)
    593             if (    pVM->dbgf.s.aBreakpoints[iBp].enmType == DBGFBPTYPE_REM
    594                 &&  pVM->dbgf.s.aBreakpoints[iBp].GCPtr == eip)
     592        for (size_t i = 0; i < RT_ELEMENTS(pVM->dbgf.s.aBreakpoints); i++)
     593            if (    pVM->dbgf.s.aBreakpoints[i].enmType == DBGFBPTYPE_REM
     594                &&  pVM->dbgf.s.aBreakpoints[i].GCPtr == eip)
    595595            {
    596                 pVM->dbgf.s.DbgEvent.u.Bp.iBp = iBp;
     596                pVM->dbgf.s.DbgEvent.u.Bp.iBp = pVM->dbgf.s.aBreakpoints[i].iBp;
    597597                break;
    598598            }
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