Merge pull request #8669 from container1234/mbp

Breakpoints: Fix crash after clearing all memory breakpoints
This commit is contained in:
Léo Lam authored and GitHub committed 2020-03-15 18:40:05 +01:00
commit d297080f52
2 files changed
+10 -1

No files matched your search

+9
View File
@@ -196,6 +196,15 @@ void MemChecks::Remove(u32 address)
});
}
void MemChecks::Clear()
{
Core::RunAsCPUThread([&] {
m_mem_checks.clear();
JitInterface::ClearCache();
PowerPC::DBATUpdated();
});
}
TMemCheck* MemChecks::GetMemCheck(u32 address, size_t size)
{
const auto iter =
+1 -1
View File
@@ -88,7 +88,7 @@ public:
bool OverlapsMemcheck(u32 address, u32 length) const;
void Remove(u32 address);
void Clear() { m_mem_checks.clear(); }
void Clear();
bool HasAny() const { return !m_mem_checks.empty(); }
private: