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