Don't cache blocks that have breakpoints.

Broke breakpoint toggling.

(cherry picked from commit 3d2ed9e20f2b917b10f359ee76c8724192e839c2)
This commit is contained in:
Jean-Philip Desjardins 2020-02-06 07:44:19 -05:00
parent 80d83ed96f
commit 2ae43e0320
4 changed files with 27 additions and 14 deletions

View file

@ -410,11 +410,7 @@ void CBasicBlock::HandleExternalFunctionReference(uintptr_t symbol, uint32 offse
bool CBasicBlock::HasBreakpoint() const
{
for(auto breakpointAddress : m_context.m_breakpoints)
{
if(breakpointAddress >= GetBeginAddress() && breakpointAddress <= GetEndAddress()) return true;
}
return false;
return m_context.HasBreakpointInRange(GetBeginAddress(), GetEndAddress());
}
uint32 CBasicBlock::BreakpointFilter(CMIPS* context)