Debugger: Fixed crash when mixing breakpoints that have conditions with others that don't within the same breakpoint type
This commit is contained in:
parent
278ca034b2
commit
0296dde9e9
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue