From 08d975066c740c86bf40a204a55f1b5a05600900 Mon Sep 17 00:00:00 2001 From: Alvaro Sanchez-Leon Date: Mon, 2 May 2016 15:00:28 -0400 Subject: [PATCH] Bug 492779: GdbLaunch#initialize() catches exceptions, then ignores them Change-Id: I0d8dbdfbed2477517439466cd3f255ff8ce0fbd1 Signed-off-by: Alvaro Sanchez-Leon --- .../org/eclipse/cdt/dsf/gdb/launching/GdbLaunch.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/GdbLaunch.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/GdbLaunch.java index b52eb03aa22..721546dd345 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/GdbLaunch.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/GdbLaunch.java @@ -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$ } }