Debugger: Fixed crash when mixing breakpoints that have conditions with others that don't within the same breakpoint type

This commit is contained in:
Sour 2019-02-18 20:42:29 -05:00
parent 278ca034b2
commit 0296dde9e9

View file

@ -307,10 +307,12 @@ void Debugger::SetBreakpoints(Breakpoint breakpoints[], uint32_t length)
if((bp.IsMarked() || isEnabled) && bp.HasBreakpointType((BreakpointType)i)) {
_breakpoints[i].push_back(bp);
bool success = true;
if(bp.HasCondition()) {
bool success = true;
ExpressionData data = _bpExpEval->GetRpnList(bp.GetCondition(), success);
_breakpointRpnList[i].push_back(success ? data : ExpressionData());
} else {
_breakpointRpnList[i].push_back(ExpressionData());
}
if(isEnabled) {