Debugger: Improve perf with write-only memchecks.

This commit is contained in:
Unknown W. Brackets 2023-04-05 06:36:40 -07:00
parent 269f01f841
commit 09f3c446b8

View file

@ -616,7 +616,7 @@ u32 CBreakPoints::CheckSkipFirst()
const std::vector<MemCheck> CBreakPoints::GetMemCheckRanges(bool write) { const std::vector<MemCheck> CBreakPoints::GetMemCheckRanges(bool write) {
std::lock_guard<std::mutex> guard(memCheckMutex_); std::lock_guard<std::mutex> guard(memCheckMutex_);
std::vector<MemCheck> ranges = memChecks_; std::vector<MemCheck> ranges;
for (const auto &check : memChecks_) { for (const auto &check : memChecks_) {
if (!(check.cond & MEMCHECK_READ) && !write) if (!(check.cond & MEMCHECK_READ) && !write)
continue; continue;
@ -628,6 +628,7 @@ const std::vector<MemCheck> CBreakPoints::GetMemCheckRanges(bool write) {
copy.start ^= 0x40000000; copy.start ^= 0x40000000;
if (copy.end != 0) if (copy.end != 0)
copy.end ^= 0x40000000; copy.end ^= 0x40000000;
ranges.push_back(check);
ranges.push_back(copy); ranges.push_back(copy);
} }