From efee79fd71e7639ee955af602a73a8b2e0eb6a43 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 23 May 2020 10:26:27 -0700 Subject: [PATCH] Debugger: Don't break during startup. --- Core/Debugger/Breakpoints.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Debugger/Breakpoints.cpp b/Core/Debugger/Breakpoints.cpp index 96f52ae0ba..f3501a370c 100644 --- a/Core/Debugger/Breakpoints.cpp +++ b/Core/Debugger/Breakpoints.cpp @@ -65,7 +65,7 @@ BreakAction MemCheck::Action(u32 addr, bool write, int size, u32 pc) { int mask = write ? MEMCHECK_WRITE : MEMCHECK_READ; if (cond & mask) { Log(addr, write, size, pc); - if (result & BREAK_ACTION_PAUSE) { + if ((result & BREAK_ACTION_PAUSE) && coreState != CORE_POWERUP) { Core_EnableStepping(true); host->SetDebugMode(true); } @@ -364,7 +364,7 @@ BreakAction CBreakPoints::ExecBreakPoint(u32 addr) { NOTICE_LOG(JIT, "BKP PC=%08x: %s", addr, formatted.c_str()); } } - if (info.result & BREAK_ACTION_PAUSE) { + if ((info.result & BREAK_ACTION_PAUSE) && coreState != CORE_POWERUP) { Core_EnableStepping(true); host->SetDebugMode(true); }