mirror of https://github.com/PCSX2/pcsx2.git
Merge pull request #1377 from NZJenkins/master
GetBreakPointCondition handle temp breakpoints
This commit is contained in:
commit
c2b31c0987
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue