1
0
Fork 0
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:
Alain Magloire 2004-01-30 19:46:55 +00:00
parent fb22e46d9a
commit df79974b26

View file

@ -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()) {