Debugger: Fixed DMC reads not triggering breakpoints (when sub-instruction BPs are disabled)

This commit is contained in:
Sour 2019-01-14 19:30:50 -05:00
parent 62c2541642
commit c5801ea2e0

View file

@ -849,7 +849,8 @@ bool Debugger::ProcessRamOperation(MemoryOperationType type, uint16_t &addr, uin
case MemoryOperationType::Write: breakpointType = BreakpointType::WriteRam; break; case MemoryOperationType::Write: breakpointType = BreakpointType::WriteRam; break;
} }
if(_breakOnFirstCycle) { //For DMC reads, always break when it happens, rather than at the start (because we can't predict it easily)
if(_breakOnFirstCycle && !isDmcRead) {
if(type == MemoryOperationType::ExecOpCode && !breakDone) { if(type == MemoryOperationType::ExecOpCode && !breakDone) {
ProcessAllBreakpoints(operationInfo); ProcessAllBreakpoints(operationInfo);
} else if(_hasBreakpoint[breakpointType]) { } else if(_hasBreakpoint[breakpointType]) {