Changeset 87594 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Feb 3, 2021 8:23:46 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 142626
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/DBGF.cpp
r86755 r87594 149 149 if (RT_SUCCESS(rc)) 150 150 { 151 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS152 rc = dbgfR3BpInit(pVM);153 #else154 151 rc = dbgfR3BpInit(pUVM); 155 #endif156 152 if (RT_SUCCESS(rc)) 157 153 { … … 178 174 dbgfR3OSTermPart2(pUVM); 179 175 } 180 #ifdef VBOX_WITH_LOTS_OF_DBGF_BPS181 176 dbgfR3BpTerm(pUVM); 182 #endif183 177 } 184 178 dbgfR3AsTerm(pUVM); … … 210 204 dbgfR3PlugInTerm(pUVM); 211 205 dbgfR3OSTermPart2(pUVM); 212 #ifdef VBOX_WITH_LOTS_OF_DBGF_BPS213 206 dbgfR3BpTerm(pUVM); 214 #endif215 207 dbgfR3AsTerm(pUVM); 216 208 dbgfR3RegTerm(pUVM); … … 785 777 */ 786 778 DBGFEVENT DbgEvent; 787 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS788 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 #else796 779 DbgEvent.u.Bp.hBp = pVCpu->dbgf.s.hBpActive; 797 780 pVCpu->dbgf.s.hBpActive = NIL_DBGFBP; … … 801 784 return dbgfR3SendEventWaitEx(pVM, pVCpu, enmEvent, DBGFEVENTCTX_RAW, &DbgEvent.u, sizeof(DbgEvent.u.Bp)); 802 785 } 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 825 787 return VERR_DBGF_IPE_1; 826 #endif827 788 } 828 789 -
trunk/src/VBox/VMM/VMMR3/EM.cpp
r87130 r87594 839 839 840 840 case VINF_EM_DBG_BREAKPOINT: 841 #ifdef VBOX_WITH_LOTS_OF_DBGF_BPS842 841 rc = DBGFR3BpHit(pVM, pVCpu); 843 #else844 rc = DBGFR3EventBreakpoint(pVM, DBGFEVENT_BREAKPOINT);845 #endif846 842 break; 847 843
Note:
See TracChangeset
for help on using the changeset viewer.