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:
parent
337f549394
commit
892e506a8e
1 changed files with 22 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue