Debugger: Clear breakpoint skips when resetting

This commit is contained in:
Ty Lamontagne 2023-11-18 17:13:41 -05:00 committed by refractionpcsx2
parent 3333553b24
commit 9a6e5458c9
3 changed files with 11 additions and 0 deletions

View File

@ -377,6 +377,14 @@ u32 CBreakPoints::CheckSkipFirst(BreakPointCpu cpu, u32 cmpPc)
return 0;
}
void CBreakPoints::ClearSkipFirst()
{
breakSkipFirstAtEE_ = 0;
breakSkipFirstTicksEE_ = 0;
breakSkipFirstAtIop_ = 0;
breakSkipFirstTicksIop_ = 0;
}
const std::vector<MemCheck> CBreakPoints::GetMemCheckRanges()
{
std::vector<MemCheck> ranges = memChecks_;

View File

@ -138,6 +138,7 @@ public:
static void SetSkipFirst(BreakPointCpu cpu, u32 pc);
static u32 CheckSkipFirst(BreakPointCpu cpu, u32 pc);
static void ClearSkipFirst();
// Includes uncached addresses.
static const std::vector<MemCheck> GetMemCheckRanges();

View File

@ -96,6 +96,8 @@ void cpuReset()
g_eeloadMain = 0;
g_eeloadExec = 0;
g_osdsys_str = 0;
CBreakPoints::ClearSkipFirst();
}
__ri void cpuException(u32 code, u32 bd)