mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-09 19:43:27 +02:00
Do not try -exec-interrupt since it is not supported.
This commit is contained in:
parent
3e1694d249
commit
187811636e
1 changed files with 11 additions and 10 deletions
|
@ -160,26 +160,27 @@ public class MIInferior extends Process {
|
||||||
interrupt();
|
interrupt();
|
||||||
session.postCommand(abort);
|
session.postCommand(abort);
|
||||||
MIInfo info = abort.getMIInfo();
|
MIInfo info = abort.getMIInfo();
|
||||||
|
setTerminated();
|
||||||
} catch (MIException e) {
|
} catch (MIException e) {
|
||||||
}
|
}
|
||||||
setTerminated();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void interrupt() {
|
public void interrupt() throws MIException {
|
||||||
Process gdb = session.getMIProcess();
|
Process gdb = session.getMIProcess();
|
||||||
if (gdb instanceof Spawner) {
|
if (gdb instanceof Spawner) {
|
||||||
Spawner gdbSpawner = (Spawner)gdb;
|
Spawner gdbSpawner = (Spawner)gdb;
|
||||||
gdbSpawner.interrupt();
|
gdbSpawner.interrupt();
|
||||||
} else {
|
} else {
|
||||||
// Try the exec-interrupt;
|
// Try the exec-interrupt; this will be for "gdb --async"
|
||||||
CommandFactory factory = session.getCommandFactory();
|
// CommandFactory factory = session.getCommandFactory();
|
||||||
MIExecInterrupt interrupt = factory.createMIExecInterrupt();
|
// MIExecInterrupt interrupt = factory.createMIExecInterrupt();
|
||||||
try {
|
// try {
|
||||||
session.postCommand(interrupt);
|
// session.postCommand(interrupt);
|
||||||
MIInfo info = interrupt.getMIInfo();
|
// MIInfo info = interrupt.getMIInfo();
|
||||||
} catch (MIException e) {
|
// } catch (MIException e) {
|
||||||
}
|
// }
|
||||||
|
throw new MIException("Interruption no supported");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue