bool CBreakPoints::IsTempBreakPoint(u32 _iAddress) { for (size_t i = 0; i < m_iBreakPoints.size(); i++) if (m_iBreakPoints[i].iAddress == _iAddress && m_iBreakPoints[i].bTemporary) return true; return false; }
bool CBreakPoints::IsAddressBreakPoint(u32 _iAddress) { for (size_t i = 0; i < m_iBreakPoints.size(); i++) if (m_iBreakPoints[i].iAddress == _iAddress) return true; return false; }
void CBreakPoints::ClearTemporaryBreakPoints() { if (m_iBreakPoints.size() == 0) return; bool update = false; for (int i = (int)m_iBreakPoints.size()-1; i >= 0; --i) { if (m_iBreakPoints[i].bTemporary) { InvalidateJit(m_iBreakPoints[i].iAddress); m_iBreakPoints.remove(m_iBreakPoints[i]); update = true; } } if (update) host->UpdateDisassembly(); // redraw in order to not show the breakpoint anymore }
void CBreakPoints::RemoveBreakPoint(u32 _iAddress) { for (size_t i = 0; i < m_iBreakPoints.size(); i++) { if (m_iBreakPoints[i].iAddress == _iAddress) { m_iBreakPoints.remove(m_iBreakPoints[i]); break; } } }
void CBreakPoints::RemoveBreakPoint(u32 _iAddress) { for (size_t i = 0; i < m_iBreakPoints.size(); i++) { if (m_iBreakPoints[i].iAddress == _iAddress) { m_iBreakPoints.remove(m_iBreakPoints[i]); InvalidateJit(_iAddress); host->UpdateDisassembly(); // redraw in order to not show the breakpoint anymore break; } } }
int CBreakPoints::GetNumBreakpoints() { return (int)m_iBreakPoints.size(); }