From 1385b28bd773f9000c036ec47fca628441e39514 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Wed, 27 Jan 2010 01:06:55 +0000 Subject: [PATCH] [300586] Avoid RejectedExecutionException upon shutdown --- .../eclipse/cdt/dsf/gdb/service/command/GDBControl_7_0.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/command/GDBControl_7_0.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/command/GDBControl_7_0.java index 37152f3ec1e..7dfc910331d 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/command/GDBControl_7_0.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/command/GDBControl_7_0.java @@ -22,6 +22,7 @@ import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants; import org.eclipse.cdt.dsf.concurrent.DataRequestMonitor; import org.eclipse.cdt.dsf.concurrent.DsfRunnable; import org.eclipse.cdt.dsf.concurrent.IDsfStatusConstants; +import org.eclipse.cdt.dsf.concurrent.ImmediateExecutor; import org.eclipse.cdt.dsf.concurrent.RequestMonitor; import org.eclipse.cdt.dsf.concurrent.Sequence; import org.eclipse.cdt.dsf.datamodel.AbstractDMEvent; @@ -566,7 +567,7 @@ public class GDBControl_7_0 extends AbstractMIControl implements IGDBControl { // If the last process we are debugging finishes, let's terminate GDB // but not for a remote attach session, since we could request to attach // to another process - terminate(new RequestMonitor(getExecutor(), null)); + terminate(new RequestMonitor(ImmediateExecutor.getInstance(), null)); } } }