diff options
author | Marc Khouzam | 2016-08-24 14:13:29 +0000 |
---|---|---|
committer | Marc Khouzam | 2016-09-07 19:39:41 +0000 |
commit | 2388bb65c573fd1a78d7d1a226b9e861a8eaeff6 (patch) | |
tree | 3ba52e0a06aebfc7abc5b3583aea9ffc990af061 /dsf-gdb | |
parent | e9b297390b4586878022a3269f7e83f9f29d74f8 (diff) | |
download | org.eclipse.cdt-2388bb65c573fd1a78d7d1a226b9e861a8eaeff6.tar.gz org.eclipse.cdt-2388bb65c573fd1a78d7d1a226b9e861a8eaeff6.tar.xz org.eclipse.cdt-2388bb65c573fd1a78d7d1a226b9e861a8eaeff6.zip |
Bug 303808: Disable full console in all-stop mode for the moment
We currently cannot interrupt execution with the new console in all-stop
mode. This means that if the user resumes execution then no new
breakpoints can be set from CDT while the target is running; also, the
interrupt button simply does not work.
This patch temporarily disables the new console in all-stop, until we
have the problem fixed.
This also solves the pagination problem as pagination is only enabled
in all-stop mode.
Change-Id: I858268d469923700ae960600cb1dbb062729dc88
Diffstat (limited to 'dsf-gdb')
-rw-r--r-- | dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBBackend_7_12.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBBackend_7_12.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBBackend_7_12.java index edb881e87ca..f8b6ddb4120 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBBackend_7_12.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBBackend_7_12.java @@ -14,6 +14,7 @@ import java.io.OutputStream; import org.eclipse.cdt.core.parser.util.StringUtil; import org.eclipse.cdt.dsf.gdb.internal.GdbPlugin; +import org.eclipse.cdt.dsf.gdb.launching.LaunchUtils; import org.eclipse.cdt.dsf.service.DsfSession; import org.eclipse.cdt.utils.pty.PTY; import org.eclipse.cdt.utils.pty.PTY.Mode; @@ -44,16 +45,20 @@ public class GDBBackend_7_12 extends GDBBackend { /** Indicate that we failed to create a PTY. */ private boolean fPtyFailure; + private boolean fIsAllStop; + private InputStream fDummyErrorStream; public GDBBackend_7_12(DsfSession session, ILaunchConfiguration lc) { super(session, lc); + fIsAllStop = !LaunchUtils.getIsNonStopMode(lc); createPty(); } @Override public boolean isFullGdbConsoleSupported() { return !Platform.getOS().equals(Platform.OS_WIN32) + && !fIsAllStop && !fPtyFailure; } |