Пример #1
0
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;
}
Пример #2
0
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;
}
Пример #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
}
Пример #4
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;
		}
	}
}
Пример #5
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;
		}
	}
}
Пример #6
0
int CBreakPoints::GetNumBreakpoints()
{
	return (int)m_iBreakPoints.size();
}