Example #1
0
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;
		}
	}
}
Example #2
0
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;
		}
	}
}
Example #3
0
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
}