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:
parent
0b93e8116e
commit
08d975066c
1 changed files with 5 additions and 5 deletions
|
@ -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$
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue