mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 04:15:35 +02:00
Bug 345019: Harmless race condition between stopping tracking breakpoints and GDB shutdown causes unnecessary error printout
This commit is contained in:
parent
f3be8a1ae2
commit
7273934121
1 changed files with 7 additions and 1 deletions
|
@ -374,7 +374,13 @@ public class GDBProcesses_7_2 extends GDBProcesses_7_1 {
|
|||
IBreakpointsTargetDMContext bpTargetDmc = DMContexts.getAncestorOfType(dmc, IBreakpointsTargetDMContext.class);
|
||||
MIBreakpointsManager bpmService = getServicesTracker().getService(MIBreakpointsManager.class);
|
||||
if (bpmService != null) {
|
||||
bpmService.stopTrackingBreakpoints(bpTargetDmc, new RequestMonitor(ImmediateExecutor.getInstance(), null));
|
||||
bpmService.stopTrackingBreakpoints(bpTargetDmc, new RequestMonitor(ImmediateExecutor.getInstance(), null) {
|
||||
@Override
|
||||
protected void handleCompleted() {
|
||||
// Ok, no need to report any error because we may have already shutdown.
|
||||
// We need to override handleCompleted to avoid risking having a error printout in the log
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue