mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
Bugzilla 227629.
This commit is contained in:
parent
2c82390e87
commit
a6a82b3a2c
2 changed files with 13 additions and 2 deletions
|
@ -76,9 +76,15 @@ public class FinalLaunchSequence extends Sequence {
|
|||
boolean useTerminal = fLaunch.getLaunchConfiguration().getAttribute(ICDTLaunchConfigurationConstants.ATTR_USE_TERMINAL, true);
|
||||
|
||||
if (useTerminal) {
|
||||
String pytName = fCommandControl.getPtyName();
|
||||
if ( pytName != null ) {
|
||||
fCommandControl.queueCommand(
|
||||
new MIInferiorTTYSet(fCommandControl.getControlDMContext(), fCommandControl.getPtyName()),
|
||||
new MIInferiorTTYSet(fCommandControl.getControlDMContext(), pytName),
|
||||
new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
|
||||
}
|
||||
else {
|
||||
requestMonitor.done();
|
||||
}
|
||||
} else {
|
||||
requestMonitor.done();
|
||||
}
|
||||
|
|
|
@ -263,7 +263,12 @@ public class GDBControl extends AbstractMIControl {
|
|||
}
|
||||
|
||||
public String getPtyName() {
|
||||
return fPty.getSlaveName();
|
||||
if ( fPty != null ) {
|
||||
return fPty.getSlaveName();
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@DsfServiceEventHandler
|
||||
|
|
Loading…
Add table
Reference in a new issue