1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 01:36:01 +02:00

Bug 492779: GdbLaunch#initialize() catches exceptions, then ignores them

Change-Id: I0d8dbdfbed2477517439466cd3f255ff8ce0fbd1
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
This commit is contained in:
Alvaro Sanchez-Leon 2016-05-02 15:00:28 -04:00
parent 0b93e8116e
commit 08d975066c

View file

@ -131,7 +131,7 @@ public class GdbLaunch extends DsfLaunch implements ITerminate, IDisconnect, ITr
return fServiceFactory;
}
public void initialize() {
public void initialize() throws DebugException {
/*
* Registering the launch as an adapter. This ensures that this launch
* will be associated with all DMContexts from this session. We do this
@ -156,11 +156,11 @@ public class GdbLaunch extends DsfLaunch implements ITerminate, IDisconnect, ITr
try {
fExecutor.submit(initRunnable).get();
} catch (InterruptedException e) {
new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, IDsfStatusConstants.INTERNAL_ERROR,
"Error initializing launch", e); //$NON-NLS-1$
throw new DebugException(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, IDsfStatusConstants.INTERNAL_ERROR,
"Error initializing launch", e)); //$NON-NLS-1$
} catch (ExecutionException e) {
new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, IDsfStatusConstants.INTERNAL_ERROR,
"Error initializing launch", e); //$NON-NLS-1$
throw new DebugException(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, IDsfStatusConstants.INTERNAL_ERROR,
"Error initializing launch", e)); //$NON-NLS-1$
}
}