2015-06-24 23:26:19 +00:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
#include "Breakpoint.h"
|
|
|
|
|
2016-01-09 18:15:43 +00:00
|
|
|
Breakpoint::Breakpoint()
|
2015-06-24 23:26:19 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Breakpoint::~Breakpoint()
|
|
|
|
{
|
|
|
|
}
|
2016-01-09 18:15:43 +00:00
|
|
|
|
|
|
|
bool Breakpoint::Matches(uint32_t memoryAddr, uint32_t absoluteAddr)
|
|
|
|
{
|
|
|
|
return _addr == -1 || (memoryAddr == _addr && !_isAbsoluteAddr) || (absoluteAddr == _addr && _isAbsoluteAddr);
|
|
|
|
}
|
|
|
|
|
|
|
|
BreakpointType Breakpoint::GetType()
|
|
|
|
{
|
|
|
|
return _type;
|
|
|
|
}
|
|
|
|
|
|
|
|
string Breakpoint::GetCondition()
|
|
|
|
{
|
|
|
|
return _condition;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Breakpoint::ClearCondition()
|
|
|
|
{
|
|
|
|
memset(_condition, 0, sizeof(_condition));
|
|
|
|
}
|