mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-18 14:35:23 +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);
|
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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -263,8 +263,13 @@ public class GDBControl extends AbstractMIControl {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPtyName() {
|
public String getPtyName() {
|
||||||
|
if ( fPty != null ) {
|
||||||
return fPty.getSlaveName();
|
return fPty.getSlaveName();
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@DsfServiceEventHandler
|
@DsfServiceEventHandler
|
||||||
public void eventDispatched(ExitedEvent e) {
|
public void eventDispatched(ExitedEvent e) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue