mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Let the MIExecInterrupt through
This commit is contained in:
parent
fb22e46d9a
commit
df79974b26
1 changed files with 4 additions and 3 deletions
|
@ -15,6 +15,7 @@ import java.util.Observable;
|
|||
|
||||
import org.eclipse.cdt.debug.mi.core.command.Command;
|
||||
import org.eclipse.cdt.debug.mi.core.command.CommandFactory;
|
||||
import org.eclipse.cdt.debug.mi.core.command.MIExecInterrupt;
|
||||
import org.eclipse.cdt.debug.mi.core.command.MIGDBExit;
|
||||
import org.eclipse.cdt.debug.mi.core.command.MIGDBSet;
|
||||
import org.eclipse.cdt.debug.mi.core.event.MIEvent;
|
||||
|
@ -297,9 +298,9 @@ public class MISession extends Observable {
|
|||
if (inferior.isRunning()) {
|
||||
// REMINDER: if we support -exec-interrupt
|
||||
// Let it throught:
|
||||
// if (cmd instanceof MIExecInterrupt) { }
|
||||
// else
|
||||
throw new MIException("Target is not suspended");
|
||||
if (!(cmd instanceof MIExecInterrupt)) {
|
||||
throw new MIException("Target is not suspended");
|
||||
}
|
||||
}
|
||||
|
||||
if (isTerminated()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue