mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Do not throw an exception if the target is interrupted
This commit is contained in:
parent
bd6255589b
commit
d2f10d5cf1
1 changed files with 5 additions and 5 deletions
|
@ -191,10 +191,6 @@ public class MIInferior extends Process {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If we've failed throw an exception up.
|
|
||||||
if (state == RUNNING) {
|
|
||||||
throw new MIException("Failed to interrupt");
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// Try the exec-interrupt; this will be for "gdb --async"
|
// Try the exec-interrupt; this will be for "gdb --async"
|
||||||
// CommandFactory factory = session.getCommandFactory();
|
// CommandFactory factory = session.getCommandFactory();
|
||||||
|
@ -204,7 +200,11 @@ public class MIInferior extends Process {
|
||||||
// MIInfo info = interrupt.getMIInfo();
|
// MIInfo info = interrupt.getMIInfo();
|
||||||
// } catch (MIException e) {
|
// } catch (MIException e) {
|
||||||
// }
|
// }
|
||||||
throw new MIException("Interruption no supported");
|
//throw new MIException("Interruption no supported");
|
||||||
|
}
|
||||||
|
// If we've failed throw an exception up.
|
||||||
|
if (state == RUNNING) {
|
||||||
|
throw new MIException("Failed to interrupt");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue