mirror of https://github.com/buggins/dlangide.git
change the length of the array after accessing that array
This commit is contained in:
parent
4fc802f742
commit
9e2ad854ce
|
@ -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