mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
Try to interrupt the inferior first before killing.
This commit is contained in:
parent
be809a8ebc
commit
f0942e76d7
1 changed files with 2 additions and 0 deletions
|
@ -156,6 +156,8 @@ public class MIInferior extends Process {
|
||||||
CommandFactory factory = session.getCommandFactory();
|
CommandFactory factory = session.getCommandFactory();
|
||||||
MIExecAbort abort = factory.createMIExecAbort();
|
MIExecAbort abort = factory.createMIExecAbort();
|
||||||
try {
|
try {
|
||||||
|
// Try to interrupt the inferior, first.
|
||||||
|
interrupt();
|
||||||
session.postCommand(abort);
|
session.postCommand(abort);
|
||||||
MIInfo info = abort.getMIInfo();
|
MIInfo info = abort.getMIInfo();
|
||||||
} catch (MIException e) {
|
} catch (MIException e) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue