Make CBreakpoints an object

This commit is contained in:
Henrik Rydgård committed 2024-11-25 00:22:53 +01:00
1 parent f692092159
commit 7992ff4627
26 files changed
+252 -258

No files matched your search

+2 -2
View File
@@ -117,7 +117,7 @@ void Arm64JitBackend::CompIR_Breakpoint(IRInst inst) {
bool isWrite = MIPSAnalyst::IsOpMemoryWrite(checkedPC);
MemCheck check;
if (CBreakPoints::GetMemCheckInRange(iaddr, size, &check)) {
if (g_breakpoints.GetMemCheckInRange(iaddr, size, &check)) {
if (!(check.cond & MEMCHECK_READ) && !isWrite)
break;
if (!(check.cond & (MEMCHECK_WRITE | MEMCHECK_WRITE_ONCHANGE)) && isWrite)
@@ -148,7 +148,7 @@ void Arm64JitBackend::CompIR_Breakpoint(IRInst inst) {
}
bool isWrite = MIPSAnalyst::IsOpMemoryWrite(checkedPC);
const auto memchecks = CBreakPoints::GetMemCheckRanges(isWrite);
const auto memchecks = g_breakpoints.GetMemCheckRanges(isWrite);
// We can trivially skip if there are no checks for this type (i.e. read vs write.)
if (memchecks.empty())
break;