mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[251486] Cleanup of unnecessary local variable.
This commit is contained in:
parent
0f238db514
commit
d9c21326ea
1 changed files with 4 additions and 6 deletions
|
@ -184,16 +184,14 @@ public class GdbLaunchDelegate extends LaunchConfigurationDelegate
|
|||
// finalLaunchSequence failed. Shutdown the session so that all started
|
||||
// services including any GDB process are shutdown. (bug 251486)
|
||||
//
|
||||
final GdbLaunch gdbLaunch = launch;
|
||||
|
||||
Query<Object> launchShutdownQuery = new Query<Object>() {
|
||||
@Override
|
||||
protected void execute(DataRequestMonitor<Object> rm) {
|
||||
gdbLaunch.shutdownSession(rm);
|
||||
launch.shutdownSession(rm);
|
||||
}
|
||||
};
|
||||
|
||||
gdbLaunch.getSession().getExecutor().execute(launchShutdownQuery);
|
||||
launch.getSession().getExecutor().execute(launchShutdownQuery);
|
||||
|
||||
// wait for the shutdown to finish.
|
||||
// The Query.get() method is a synchronous call which blocks until the
|
||||
|
@ -201,9 +199,9 @@ public class GdbLaunchDelegate extends LaunchConfigurationDelegate
|
|||
try {
|
||||
launchShutdownQuery.get();
|
||||
} catch (InterruptedException e) {
|
||||
throw new DebugException( new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, DebugException.INTERNAL_ERROR, "InterruptedException while shutting down debugger launch " + gdbLaunch, e)); //$NON-NLS-1$
|
||||
throw new DebugException( new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, DebugException.INTERNAL_ERROR, "InterruptedException while shutting down debugger launch " + launch, e)); //$NON-NLS-1$
|
||||
} catch (ExecutionException e) {
|
||||
throw new DebugException(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, DebugException.REQUEST_FAILED, "Error in shutting down debugger launch " + gdbLaunch, e)); //$NON-NLS-1$
|
||||
throw new DebugException(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, DebugException.REQUEST_FAILED, "Error in shutting down debugger launch " + launch, e)); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue