mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Ignore the errror form "set new-console"
This commit is contained in:
parent
e27b80d2b5
commit
b22d79fa61
1 changed files with 11 additions and 6 deletions
|
@ -115,6 +115,7 @@ public class MIPlugin extends Plugin {
|
||||||
MISession session = createMISession(pgdb, pty, MISession.PROGRAM);
|
MISession session = createMISession(pgdb, pty, MISession.PROGRAM);
|
||||||
// For windows we need to start the inferior in a new console window
|
// For windows we need to start the inferior in a new console window
|
||||||
// to separate the Inferior std{in,out,err} from gdb std{in,out,err}
|
// to separate the Inferior std{in,out,err} from gdb std{in,out,err}
|
||||||
|
try {
|
||||||
CommandFactory factory = session.getCommandFactory();
|
CommandFactory factory = session.getCommandFactory();
|
||||||
MIGDBSet set = factory.createMIGDBSet(new String[]{"new-console"});
|
MIGDBSet set = factory.createMIGDBSet(new String[]{"new-console"});
|
||||||
session.postCommand(set);
|
session.postCommand(set);
|
||||||
|
@ -122,6 +123,10 @@ public class MIPlugin extends Plugin {
|
||||||
if (info == null) {
|
if (info == null) {
|
||||||
throw new MIException("No answer");
|
throw new MIException("No answer");
|
||||||
}
|
}
|
||||||
|
} catch (MIException e) {
|
||||||
|
// We ignore this exception, for example
|
||||||
|
// on GNU/Linux the new-console is an error.
|
||||||
|
}
|
||||||
return new CSession(session, false);
|
return new CSession(session, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue