Debugger: Remove double debug window updates.

Core_EnableStepping() is already marking the debug windows for update,
there's no need to call SetDebugMode() again.
This commit is contained in:
Unknown W. Brackets committed 2021-12-12 11:24:03 -08:00
1 parent c57e5b081d
commit db2eddcf27
5 files changed
+1 -20

No files matched your search

-4
View File
@@ -69,7 +69,6 @@ BreakAction MemCheck::Action(u32 addr, bool write, int size, u32 pc, const char
Log(addr, write, size, pc, reason);
if ((result & BREAK_ACTION_PAUSE) && coreState != CORE_POWERUP) {
Core_EnableStepping(true, "memory.breakpoint", start);
host->SetDebugMode(true);
}
return result;
@@ -125,8 +124,6 @@ void MemCheck::JitCleanup(bool changed)
CBreakPoints::SetSkipFirst(lastPC);
Core_EnableStepping(false);
}
else
host->SetDebugMode(true);
}
// Note: must lock while calling this.
@@ -368,7 +365,6 @@ BreakAction CBreakPoints::ExecBreakPoint(u32 addr) {
}
if ((info.result & BREAK_ACTION_PAUSE) && coreState != CORE_POWERUP) {
Core_EnableStepping(true, "cpu.breakpoint", info.addr);
host->SetDebugMode(true);
}
return info.result;