1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-18 14:35:23 +02:00

Bugzilla 227629.

This commit is contained in:
Randy Rohrbach 2008-04-17 19:22:14 +00:00
parent 2c82390e87
commit a6a82b3a2c
2 changed files with 13 additions and 2 deletions

View file

@ -76,9 +76,15 @@ public class FinalLaunchSequence extends Sequence {
boolean useTerminal = fLaunch.getLaunchConfiguration().getAttribute(ICDTLaunchConfigurationConstants.ATTR_USE_TERMINAL, true); boolean useTerminal = fLaunch.getLaunchConfiguration().getAttribute(ICDTLaunchConfigurationConstants.ATTR_USE_TERMINAL, true);
if (useTerminal) { if (useTerminal) {
String pytName = fCommandControl.getPtyName();
if ( pytName != null ) {
fCommandControl.queueCommand( fCommandControl.queueCommand(
new MIInferiorTTYSet(fCommandControl.getControlDMContext(), fCommandControl.getPtyName()), new MIInferiorTTYSet(fCommandControl.getControlDMContext(), pytName),
new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor)); new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
}
else {
requestMonitor.done();
}
} else { } else {
requestMonitor.done(); requestMonitor.done();
} }

View file

@ -263,7 +263,12 @@ public class GDBControl extends AbstractMIControl {
} }
public String getPtyName() { public String getPtyName() {
return fPty.getSlaveName(); if ( fPty != null ) {
return fPty.getSlaveName();
}
else {
return null;
}
} }
@DsfServiceEventHandler @DsfServiceEventHandler