/** * Should be called before returning back emulation to tell the CPU core * to call us after each instruction if "real-time" debugging like * breakpoints has been set. */ void DebugCpu_SetDebugging(void) { bCpuProfiling = Profile_CpuStart(); nCpuActiveCBs = BreakCond_BreakPointCount(false); if (nCpuActiveCBs || nCpuSteps || bCpuProfiling) M68000_SetSpecial(SPCFLAG_DEBUGGER); else M68000_UnsetSpecial(SPCFLAG_DEBUGGER); }
/** * Should be called before returning back emulation to tell the CPU core * to call us after each instruction if "real-time" debugging like * breakpoints has been set. */ void DebugCpu_SetDebugging(void) { bCpuProfiling = Profile_CpuStart(); nCpuActiveCBs = BreakCond_CpuBreakPointCount(); if (nCpuActiveCBs || nCpuSteps || bCpuProfiling || History_TrackCpu() || LOG_TRACE_LEVEL((TRACE_CPU_DISASM|TRACE_CPU_SYMBOLS)) || ConOutDevice != CONOUT_DEVICE_NONE) { M68000_SetSpecial(SPCFLAG_DEBUGGER); nCpuInstructions = 0; } else M68000_UnsetSpecial(SPCFLAG_DEBUGGER); }