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

+3 -3
View File
@@ -525,9 +525,9 @@ void NotifyMemInfoPC(MemBlockFlags flags, uint32_t start, uint32_t size, uint32_
if (!(flags & MemBlockFlags::SKIP_MEMCHECK)) {
if (flags & MemBlockFlags::WRITE) {
CBreakPoints::ExecMemCheck(start, true, size, pc, tagStr);
g_breakpoints.ExecMemCheck(start, true, size, pc, tagStr);
} else if (flags & MemBlockFlags::READ) {
CBreakPoints::ExecMemCheck(start, false, size, pc, tagStr);
g_breakpoints.ExecMemCheck(start, false, size, pc, tagStr);
}
}
}
@@ -541,7 +541,7 @@ void NotifyMemInfoCopy(uint32_t destPtr, uint32_t srcPtr, uint32_t size, const c
return;
bool needsFlush = false;
if (CBreakPoints::HasMemChecks()) {
if (g_breakpoints.HasMemChecks()) {
// This will cause a flush, but it's needed to trigger memchecks with proper data.
char tagData[128];
size_t tagSize = FormatMemWriteTagAt(tagData, sizeof(tagData), prefix, srcPtr, size);