Debugger: Improve perf with write-only memchecks.
This commit is contained in:
parent
269f01f841
commit
09f3c446b8
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue