Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 370376
Collapse All | Expand All

(-)a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses.java (+7 lines)
Lines 505-510 Link Here
505
	 * @since 4.0
505
	 * @since 4.0
506
	 */
506
	 */
507
	protected void createConsole(final IContainerDMContext containerDmc, final boolean restart, final RequestMonitor rm) {
507
	protected void createConsole(final IContainerDMContext containerDmc, final boolean restart, final RequestMonitor rm) {
508
    	if (fBackend.getSessionType() == SessionType.REMOTE || fBackend.getIsAttachSession()) {
509
    		// Remote or attach sessions shouldn't have a console, since the inferior is not started
510
    		// by eclipse but by gdbserver
511
    		rm.done();
512
    		return;
513
    	}
514
    	
508
		initializeInputOutput(containerDmc, new ImmediateRequestMonitor(rm) {
515
		initializeInputOutput(containerDmc, new ImmediateRequestMonitor(rm) {
509
			@Override
516
			@Override
510
			protected void handleSuccess() {
517
			protected void handleSuccess() {
(-)a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/StartOrRestartProcessSequence_7_0.java (+9 lines)
Lines 295-300 Link Here
295
	 */
295
	 */
296
	@Execute
296
	@Execute
297
	public void stepCreateConsole(final RequestMonitor rm) {
297
	public void stepCreateConsole(final RequestMonitor rm) {
298
    	if (fBackend.getSessionType() == SessionType.REMOTE && !fBackend.getIsAttachSession()) {
299
    		// Remote non-attach sessions don't support multi-process and therefore will not
300
    		// start new processes.  Those sessions will only start the one process, which should
301
    		// not have a console, because it's output is handled by GDB server.  Therefore,
302
    		// no need to create an inferior process and add it to the launch
303
    		rm.done();
304
    		return;
305
    	}
306
    	
298
		Process inferiorProcess;
307
		Process inferiorProcess;
299
		if (fPty == null) {
308
		if (fPty == null) {
300
			inferiorProcess = new MIInferiorProcess(fContainerDmc, fBackend.getMIOutputStream());
309
			inferiorProcess = new MIInferiorProcess(fContainerDmc, fBackend.getMIOutputStream());

Return to bug 370376