mirror of https://github.com/PCSX2/pcsx2.git
GetBreakPointCondition handle temp breakpoints
Fixes #1374 temp bp were not previously handled
This commit is contained in:
parent
9c8b5e37a4
commit
6bc02cbb45
|
@ -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