mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Implement hasBreakpointChanged()
This commit is contained in:
parent
d1ba51856a
commit
2bd88f9e74
1 changed files with 10 additions and 1 deletions
|
@ -121,7 +121,16 @@ public class BreakpointManager extends SessionObject implements ICDIBreakpointMa
|
|||
}
|
||||
|
||||
boolean hasBreakpointChanged(MIBreakpoint miBreakpoint) {
|
||||
return false;
|
||||
boolean changed = false;
|
||||
int no = miBreakpoint.getNumber();
|
||||
Breakpoint point = getBreakpoint(no);
|
||||
if (point != null) {
|
||||
MIBreakpoint miBreak = point.getMIBreakpoint();
|
||||
changed = (miBreak.isEnabled() != miBreakpoint.isEnabled()) ||
|
||||
!miBreak.getCondition().equals(miBreakpoint.getCondition()) ||
|
||||
(miBreak.getIgnoreCount() != miBreakpoint.getIgnoreCount());
|
||||
}
|
||||
return changed;
|
||||
}
|
||||
|
||||
public Breakpoint getBreakpoint(int number) {
|
||||
|
|
Loading…
Add table
Reference in a new issue