mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
Debugger: Improve perf with write-only memchecks.
This commit is contained in:
1 parent
269f01f841
commit
09f3c446b8
1 file changed
+2
-1
@@ -616,7 +616,7 @@ u32 CBreakPoints::CheckSkipFirst()
|
||||
|
||||
const std::vector<MemCheck> CBreakPoints::GetMemCheckRanges(bool write) {
|
||||
std::lock_guard<std::mutex> guard(memCheckMutex_);
|
||||
std::vector<MemCheck> ranges = memChecks_;
|
||||
std::vector<MemCheck> ranges;
|
||||
for (const auto &check : memChecks_) {
|
||||
if (!(check.cond & MEMCHECK_READ) && !write)
|
||||
continue;
|
||||
@@ -628,6 +628,7 @@ const std::vector<MemCheck> CBreakPoints::GetMemCheckRanges(bool write) {
|
||||
copy.start ^= 0x40000000;
|
||||
if (copy.end != 0)
|
||||
copy.end ^= 0x40000000;
|
||||
ranges.push_back(check);
|
||||
ranges.push_back(copy);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user