Update the debugger on a break instruction.

Before it would still show "Stop" even though it was paused.
This commit is contained in:
Unknown W. Brackets 2014-01-26 11:53:29 -08:00
parent fe2b62c27d
commit 5e01119d60

View File

@ -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;
}