Пример #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;
		}
	}
}
Пример #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;
		}
	}
}
Пример #3
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;
}
Пример #4
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;
}
Пример #5
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
}
Пример #6
0
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);
	}
}
Пример #7
0
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
	}
}
Пример #8
0
void CBreakPoints::ClearAllBreakPoints()
{
	m_iBreakPoints.clear();
}
Пример #9
0
void CBreakPoints::ClearAllBreakPoints()
{
	m_iBreakPoints.clear();
	InvalidateJit();
}
Пример #10
0
int CBreakPoints::GetNumBreakpoints()
{
	return (int)m_iBreakPoints.size();
}