1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +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.Command;
import org.eclipse.cdt.debug.mi.core.command.CommandFactory; 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.MIGDBExit;
import org.eclipse.cdt.debug.mi.core.command.MIGDBSet; import org.eclipse.cdt.debug.mi.core.command.MIGDBSet;
import org.eclipse.cdt.debug.mi.core.event.MIEvent; import org.eclipse.cdt.debug.mi.core.event.MIEvent;
@ -297,10 +298,10 @@ public class MISession extends Observable {
if (inferior.isRunning()) { if (inferior.isRunning()) {
// REMINDER: if we support -exec-interrupt // REMINDER: if we support -exec-interrupt
// Let it throught: // Let it throught:
// if (cmd instanceof MIExecInterrupt) { } if (!(cmd instanceof MIExecInterrupt)) {
// else
throw new MIException("Target is not suspended"); throw new MIException("Target is not suspended");
} }
}
if (isTerminated()) { if (isTerminated()) {
throw new MIException("Session terminated"); throw new MIException("Session terminated");