1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-06 15:55:47 +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

@ -523,6 +523,13 @@ public class CBreakpointManager implements IBreakpointsListener, IBreakpointMana
bkptMap.put( breakpoint, cdiEventBkpt );
}
}
// 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 {
@ -572,6 +579,13 @@ public class CBreakpointManager implements IBreakpointsListener, IBreakpointMana
bkptMap.put( breakpoint, cdiBreakpoint );
}
}
// 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 {
@ -624,6 +638,14 @@ public class CBreakpointManager implements IBreakpointsListener, IBreakpointMana
bkptMap.put( breakpoint, cdiWatchpoint );
}
}
// 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 {