View | Details | Raw Unified | Return to bug 249227 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/dd/mi/service/command/AbstractMIControl.java (+17 lines)
Lines 360-365 Link Here
360
    abstract public MIControlDMContext getControlDMContext();
360
    abstract public MIControlDMContext getControlDMContext();
361
    
361
    
362
    /**
362
    /**
363
	 * @since 1.1
364
	 */
365
    public AbstractCLIProcess getCLIProcess() { return null; };
366
367
    
368
    /**
363
     * @since 1.1
369
     * @since 1.1
364
     */
370
     */
365
    public boolean isActive() {
371
    public boolean isActive() {
Lines 524-529 Link Here
524
                        fOutputStream.flush();
530
                        fOutputStream.flush();
525
531
526
                        MIPlugin.debug(MIPlugin.getDebugTime() + " " + str); //$NON-NLS-1$
532
                        MIPlugin.debug(MIPlugin.getDebugTime() + " " + str); //$NON-NLS-1$
533
                        AbstractCLIProcess cli = getCLIProcess();
534
                        if (cli != null) {
535
                        	cli.getConsoleOutputStream().write(str.getBytes());
536
                            cli.getConsoleOutputStream().flush();
537
                        }
527
                    }
538
                    }
528
                } catch (IOException e) {
539
                } catch (IOException e) {
529
                    // Shutdown thread in case of IO error.
540
                    // Shutdown thread in case of IO error.
Lines 556-561 Link Here
556
                while ((line = reader.readLine()) != null) {
567
                while ((line = reader.readLine()) != null) {
557
                    if (line.length() != 0) {
568
                    if (line.length() != 0) {
558
                        MIPlugin.debug(MIPlugin.getDebugTime() + " " + line +"\n"); //$NON-NLS-1$ //$NON-NLS-2$
569
                        MIPlugin.debug(MIPlugin.getDebugTime() + " " + line +"\n"); //$NON-NLS-1$ //$NON-NLS-2$
570
                        AbstractCLIProcess cli = getCLIProcess();
571
                        if (cli != null) {
572
                        	cli.getConsoleOutputStream().write(line.getBytes());
573
                        	cli.getConsoleOutputStream().write('\n');
574
                            cli.getConsoleOutputStream().flush();
575
                        }
559
                    	processMIOutput(line);
576
                    	processMIOutput(line);
560
                    }
577
                    }
561
                }
578
                }
(-)src/org/eclipse/dd/mi/service/command/AbstractCLIProcess.java (+6 lines)
Lines 188-193 Link Here
188
		return fOutputStream;
188
		return fOutputStream;
189
	}
189
	}
190
190
191
	/**
192
	 * @since 1.1
193
	 */
194
	public OutputStream getConsoleOutputStream() {
195
		return fMIOutConsolePipe;
196
	}
191
197
192
    public void eventReceived(Object output) {
198
    public void eventReceived(Object output) {
193
    	if (fSuppressConsoleOutputCounter > 0) return;
199
    	if (fSuppressConsoleOutputCounter > 0) return;
(-)src/org/eclipse/dd/gdb/internal/provisional/service/command/GDBControl.java (-1 / +2 lines)
Lines 378-384 Link Here
378
        fConnected = connected;
378
        fConnected = connected;
379
    }
379
    }
380
380
381
    public AbstractCLIProcess getCLIProcess() { 
381
    @Override
382
	public AbstractCLIProcess getCLIProcess() { 
382
        return fCLIProcess; 
383
        return fCLIProcess; 
383
    }
384
    }
384
385

Return to bug 249227