1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +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:
Alena Laskavaia 2010-04-08 19:31:39 +00:00
parent c9bd45c6cc
commit e7933895ff
2 changed files with 10 additions and 0 deletions

View file

@ -727,6 +727,12 @@ public class BreakpointManager extends Manager {
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.
if (!enable) {
int[] numbers = new int[points.length];

View file

@ -263,4 +263,8 @@ public class MIBreakpoint {
public void setFile(String file) {
this.file = file;
}
public void setLine(int line) {
this.line = line;
}
}