mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-22 00:15:25 +02:00
[221844] - support cases with multiple breakpoints (gdb does not return breakpoint with file/line so cdt sets it from requested info)
This commit is contained in:
parent
c9bd45c6cc
commit
e7933895ff
2 changed files with 10 additions and 0 deletions
|
@ -727,6 +727,12 @@ public class BreakpointManager extends Manager {
|
||||||
points[j].setFile(bkpt.getFile());
|
points[j].setFile(bkpt.getFile());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (bkpt.getLineNumber()>0) {
|
||||||
|
for (int j = 0; j < points.length; j++) {
|
||||||
|
if (points[j].getLine() == 0)
|
||||||
|
points[j].setLine(bkpt.getLineNumber());
|
||||||
|
}
|
||||||
|
}
|
||||||
// Make sure that if the breakpoint was disable we create them disable.
|
// Make sure that if the breakpoint was disable we create them disable.
|
||||||
if (!enable) {
|
if (!enable) {
|
||||||
int[] numbers = new int[points.length];
|
int[] numbers = new int[points.length];
|
||||||
|
|
|
@ -263,4 +263,8 @@ public class MIBreakpoint {
|
||||||
public void setFile(String file) {
|
public void setFile(String file) {
|
||||||
this.file = file;
|
this.file = file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setLine(int line) {
|
||||||
|
this.line = line;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue