Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2018-01-26 07:41:02 -0500
committerJonah Graham2018-01-26 10:12:40 -0500
commitee784263c237a99b54d919b2aa9737d87986a4fd (patch)
tree02fe3004d34564ed9330bf4f5aa8593c24078b4a /dsf-gdb
parentb15619d4b1653f8d00b8e7e0784f99877db6b919 (diff)
downloadorg.eclipse.cdt-ee784263c237a99b54d919b2aa9737d87986a4fd.tar.gz
org.eclipse.cdt-ee784263c237a99b54d919b2aa9737d87986a4fd.tar.xz
org.eclipse.cdt-ee784263c237a99b54d919b2aa9737d87986a4fd.zip
Bug 530371: fix device disposed SWTException on shutdown
Diffstat (limited to 'dsf-gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/GdbFullCliConsole.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/GdbFullCliConsole.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/GdbFullCliConsole.java
index e21fed3260..0044a83a1b 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/GdbFullCliConsole.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/GdbFullCliConsole.java
@@ -65,7 +65,7 @@ public class GdbFullCliConsole extends AbstractConsole implements IGDBDebuggerCo
PlatformUI.getWorkbench().getDisplay().asyncExec(() -> setName(newName));
} catch (SWTException e) {
// display may be disposed, so ignore the exception
- if (e.code != SWT.ERROR_WIDGET_DISPOSED) {
+ if (e.code != SWT.ERROR_WIDGET_DISPOSED && e.code != SWT.ERROR_DEVICE_DISPOSED) {
throw e;
}
}

Back to the top