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