GetBreakPointCondition handle temp breakpoints

Fixes #1374
temp bp were not previously handled
This commit is contained in:
NZJenkins 2016-05-30 16:16:32 +12:00
parent 9c8b5e37a4
commit 6bc02cbb45
1 changed files with 6 additions and 1 deletions

View File

@ -268,7 +268,12 @@ void CBreakPoints::ChangeBreakPointRemoveCond(u32 addr)
BreakPointCond *CBreakPoints::GetBreakPointCondition(u32 addr)
{
size_t bp = FindBreakpoint(addr, true, false);
size_t bp = FindBreakpoint(addr, true, true);
//temp breakpoints are unconditional
if (bp != INVALID_BREAKPOINT)
return NULL;
bp = FindBreakpoint(addr, true, false);
if (bp != INVALID_BREAKPOINT && breakPoints_[bp].hasCond)
return &breakPoints_[bp].cond;
return NULL;