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; } } }
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::AddBreakPoint(u32 _iAddress, bool temp) { if (!IsAddressBreakPoint(_iAddress)) { BreakPoint pt; pt.bOn=true; pt.bTemporary=temp; pt.iAddress = _iAddress; m_iBreakPoints.insert(pt); } }
void CBreakPoints::AddBreakPoint(u32 _iAddress, bool temp) { if (!IsAddressBreakPoint(_iAddress)) { BreakPoint pt; pt.bOn=true; pt.bTemporary=temp; pt.iAddress = _iAddress; m_iBreakPoints.insert(pt); InvalidateJit(_iAddress); host->UpdateDisassembly(); // redraw in order to show the breakpoint } }
void CBreakPoints::ClearAllBreakPoints() { m_iBreakPoints.clear(); }
void CBreakPoints::ClearAllBreakPoints() { m_iBreakPoints.clear(); InvalidateJit(); }
int CBreakPoints::GetNumBreakpoints() { return (int)m_iBreakPoints.size(); }