1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

reset location and condition when setting a new MIBreakpoint

getConditon instead of getWhat().
This commit is contained in:
Alain Magloire 2003-01-29 00:25:28 +00:00
parent df21bb7691
commit 91b738fdc3

View file

@ -34,6 +34,9 @@ public class Breakpoint extends CObject implements ICDILocationBreakpoint {
public void setMIBreakpoint(MIBreakpoint newMIBreakpoint) { public void setMIBreakpoint(MIBreakpoint newMIBreakpoint) {
miBreakpoint = newMIBreakpoint; miBreakpoint = newMIBreakpoint;
// Force the reset of the location and condition.
location = null;
condition = null;
} }
/** /**
@ -42,7 +45,7 @@ public class Breakpoint extends CObject implements ICDILocationBreakpoint {
public ICDICondition getCondition() throws CDIException { public ICDICondition getCondition() throws CDIException {
if (condition == null) { if (condition == null) {
condition = new Condition(miBreakpoint.getIgnoreCount(), condition = new Condition(miBreakpoint.getIgnoreCount(),
miBreakpoint.getWhat()); miBreakpoint.getCondition());
} }
return condition; return condition;
} }