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:
parent
df21bb7691
commit
91b738fdc3
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue