1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Do not try -exec-interrupt since it is not supported.

This commit is contained in:
Alain Magloire 2002-09-25 20:01:02 +00:00
parent 3e1694d249
commit 187811636e

View file

@ -160,26 +160,27 @@ public class MIInferior extends Process {
interrupt();
session.postCommand(abort);
MIInfo info = abort.getMIInfo();
setTerminated();
} catch (MIException e) {
}
setTerminated();
}
}
public void interrupt() {
public void interrupt() throws MIException {
Process gdb = session.getMIProcess();
if (gdb instanceof Spawner) {
Spawner gdbSpawner = (Spawner)gdb;
gdbSpawner.interrupt();
} else {
// Try the exec-interrupt;
CommandFactory factory = session.getCommandFactory();
MIExecInterrupt interrupt = factory.createMIExecInterrupt();
try {
session.postCommand(interrupt);
MIInfo info = interrupt.getMIInfo();
} catch (MIException e) {
}
// Try the exec-interrupt; this will be for "gdb --async"
// CommandFactory factory = session.getCommandFactory();
// MIExecInterrupt interrupt = factory.createMIExecInterrupt();
// try {
// session.postCommand(interrupt);
// MIInfo info = interrupt.getMIInfo();
// } catch (MIException e) {
// }
throw new MIException("Interruption no supported");
}
}