mirror of https://github.com/buggins/dlangide.git
Merge pull request #99 from keywan-ghadami/breakpoints-range-fix
fix range violation on deleting breakpoints
This commit is contained in:
commit
883540e5e3
|
@ -383,10 +383,10 @@ class GDBInterface : ConsoleDebuggerInterface, TextCommandTarget {
|
||||||
if (!found) {
|
if (!found) {
|
||||||
for (int j = i; j < _breakpoints.length - 1; j++)
|
for (int j = i; j < _breakpoints.length - 1; j++)
|
||||||
_breakpoints[j] = _breakpoints[j + 1];
|
_breakpoints[j] = _breakpoints[j + 1];
|
||||||
_breakpoints.length = _breakpoints.length - 1;
|
|
||||||
if (breakpointsToDelete.length)
|
if (breakpointsToDelete.length)
|
||||||
breakpointsToDelete ~= ",";
|
breakpointsToDelete ~= ",";
|
||||||
breakpointsToDelete ~= _breakpoints[i].number;
|
breakpointsToDelete ~= _breakpoints[i].number;
|
||||||
|
_breakpoints.length = _breakpoints.length - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// checking for added or updated breakpoints
|
// checking for added or updated breakpoints
|
||||||
|
|
Loading…
Reference in New Issue