1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-07 08:15:48 +02:00

Continuation of last commit; forgot to delete unused CDT breakpoint.

This commit is contained in:
John Cortell 2009-10-13 16:49:53 +00:00
parent 337f549394
commit 892e506a8e

View file

@ -524,6 +524,13 @@ public class CBreakpointManager implements IBreakpointsListener, IBreakpointMana
}
}
// Delete the new CDT breakpoint if we didn't end up using it
if (newBreakpoint != null && newBreakpoint != breakpoint) {
try {
newBreakpoint.delete();
} catch (CoreException e) {}
}
if ( breakpoint != null ) {
try {
((CBreakpoint)breakpoint).register( true );
@ -573,6 +580,13 @@ public class CBreakpointManager implements IBreakpointsListener, IBreakpointMana
}
}
// Delete the new CDT breakpoint if we didn't end up using it
if (newBreakpoint != null && newBreakpoint != breakpoint) {
try {
newBreakpoint.delete();
} catch (CoreException e) {}
}
if ( breakpoint != null ) {
try {
BreakpointProblems.removeProblemsForResolvedBreakpoint(breakpoint, getDebugTarget().getInternalID());
@ -625,6 +639,14 @@ public class CBreakpointManager implements IBreakpointsListener, IBreakpointMana
}
}
// Delete the new CDT breakpoint if we didn't end up using it
if (newBreakpoint != null && newBreakpoint != breakpoint) {
try {
newBreakpoint.delete();
} catch (CoreException e) {}
}
if ( breakpoint != null ) {
try {
((CBreakpoint)breakpoint).register( true );