From 6bc02cbb453b5bad9c8c6a3e9454097561b8f9e8 Mon Sep 17 00:00:00 2001 From: NZJenkins Date: Mon, 30 May 2016 16:16:32 +1200 Subject: [PATCH] GetBreakPointCondition handle temp breakpoints Fixes #1374 temp bp were not previously handled --- pcsx2/DebugTools/Breakpoints.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pcsx2/DebugTools/Breakpoints.cpp b/pcsx2/DebugTools/Breakpoints.cpp index bb84b41da2..09decdcb6e 100644 --- a/pcsx2/DebugTools/Breakpoints.cpp +++ b/pcsx2/DebugTools/Breakpoints.cpp @@ -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;