Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2017-08-29 07:22:00 -0400
committerJonah Graham2017-10-06 10:59:06 -0400
commit7af3055b859882fb463e1cb591accb7b34dd492f (patch)
tree772104866bf2832a5cc2a6cad51594414b7f620e /dsf-gdb
parent07e8917eb59d183c4442182b49d55dcb43bebf56 (diff)
downloadorg.eclipse.cdt-7af3055b859882fb463e1cb591accb7b34dd492f.tar.gz
org.eclipse.cdt-7af3055b859882fb463e1cb591accb7b34dd492f.tar.xz
org.eclipse.cdt-7af3055b859882fb463e1cb591accb7b34dd492f.zip
Bug 525664: Add missing close in new Debugger Console
On Windows the PTY's waitFor will be blocked (and therefore not see debugger termination) until the handle to stream is closed. Change-Id: Ifa079a064733a12a03b07c3e7361e1d19d2b8be8
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/GdbTerminalConnector.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/GdbTerminalConnector.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/GdbTerminalConnector.java
index 119cac1f18..71dbac82b3 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/GdbTerminalConnector.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/GdbTerminalConnector.java
@@ -257,6 +257,13 @@ public class GdbTerminalConnector implements IGdbTerminalControlConnector {
} catch (IOException e) {
}
+ // Close the stream (ignore exceptions on close)
+ try {
+ fInputStream.close();
+ } catch (IOException e) {
+ /* ignored on purpose */
+ }
+
return Status.OK_STATUS;
}
}

Back to the top