mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-08 09:35:23 +02:00
Do not try to interrupt if the target was suspended.
This commit is contained in:
parent
d42dfce8c4
commit
9b2e58256f
2 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2003-12-09 Alain Magloire
|
||||||
|
|
||||||
|
Do not try to interrupt if the target was suspended.
|
||||||
|
|
||||||
|
* src/org/eclipse/cdt/debug/mi/core/MIInferior.java
|
||||||
|
|
||||||
2003-12-08 Alain Magloire
|
2003-12-08 Alain Magloire
|
||||||
|
|
||||||
Target.terminate() did not pass the exception up.
|
Target.terminate() did not pass the exception up.
|
||||||
|
|
|
@ -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