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:
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.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,9 +298,9 @@ 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()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue