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:
parent
3e1694d249
commit
187811636e
1 changed files with 11 additions and 10 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue