Skip to content

Commit

Permalink
Debugger: Clear breakpoint skips when resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
F0bes authored and refractionpcsx2 committed Nov 19, 2023
1 parent 3333553 commit 9a6e545
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pcsx2/DebugTools/Breakpoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down
1 change: 1 addition & 0 deletions pcsx2/DebugTools/Breakpoints.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class CBreakPoints

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();
Expand Down
2 changes: 2 additions & 0 deletions pcsx2/R5900.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9a6e545

Please sign in to comment.