Index: /trunk/src/VBox/VMM/VMMR3/DBGF.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMR3/DBGF.cpp	(revision 42832)
+++ /trunk/src/VBox/VMM/VMMR3/DBGF.cpp	(revision 42833)
@@ -590,9 +590,9 @@
         RTGCPTR  eip = pCtx->rip + pCtx->cs.u64Base;
 #endif
-        for (iBp = 0; iBp < RT_ELEMENTS(pVM->dbgf.s.aBreakpoints); iBp++)
-            if (    pVM->dbgf.s.aBreakpoints[iBp].enmType == DBGFBPTYPE_REM
-                &&  pVM->dbgf.s.aBreakpoints[iBp].GCPtr == eip)
+        for (size_t i = 0; i < RT_ELEMENTS(pVM->dbgf.s.aBreakpoints); i++)
+            if (    pVM->dbgf.s.aBreakpoints[i].enmType == DBGFBPTYPE_REM
+                &&  pVM->dbgf.s.aBreakpoints[i].GCPtr == eip)
             {
-                pVM->dbgf.s.DbgEvent.u.Bp.iBp = iBp;
+                pVM->dbgf.s.DbgEvent.u.Bp.iBp = pVM->dbgf.s.aBreakpoints[i].iBp;
                 break;
             }
