From 5e01119d60c034f7d7149fbf6e5c687586e58e43 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 26 Jan 2014 11:53:29 -0800 Subject: [PATCH] Update the debugger on a break instruction. Before it would still show "Stop" even though it was paused. --- Core/MIPS/MIPSInt.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Core/MIPS/MIPSInt.cpp b/Core/MIPS/MIPSInt.cpp index 74a1590dad..ec7f297507 100644 --- a/Core/MIPS/MIPSInt.cpp +++ b/Core/MIPS/MIPSInt.cpp @@ -22,13 +22,14 @@ #include "math/math_util.h" #include "Common/Common.h" +#include "Core/Config.h" #include "Core/Core.h" +#include "Core/Host.h" #include "Core/MIPS/MIPS.h" #include "Core/MIPS/MIPSInt.h" #include "Core/MIPS/MIPSTables.h" #include "Core/MIPS/JitCommon/JitCommon.h" #include "Core/Reporting.h" -#include "Core/Config.h" #include "Core/HLE/HLE.h" #include "Core/HLE/HLETables.h" #include "Core/HLE/ReplaceTables.h" @@ -182,8 +183,10 @@ namespace MIPSInt { Reporting::ReportMessage("BREAK instruction hit"); ERROR_LOG(CPU, "BREAK!"); - if (!g_Config.bIgnoreBadMemAccess) - Core_UpdateState(CORE_STEPPING); + if (!g_Config.bIgnoreBadMemAccess) { + Core_EnableStepping(true); + host->SetDebugMode(true); + } PC += 4; }