mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-12 02:08:45 +00:00
GetBreakPointCondition handle temp breakpoints
Fixes #1374 temp bp were not previously handled
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user