Stop the CPU when a breakpoint is triggered

This commit is contained in:
Niclas Finne 2012-04-20 21:15:05 +02:00
parent 7628652a9d
commit f328a8a483

View File

@ -64,7 +64,6 @@ import se.sics.mspsim.cli.LineListener;
import se.sics.mspsim.cli.LineOutputStream; import se.sics.mspsim.cli.LineOutputStream;
import se.sics.mspsim.core.EmulationException; import se.sics.mspsim.core.EmulationException;
import se.sics.mspsim.core.MSP430; import se.sics.mspsim.core.MSP430;
import se.sics.mspsim.core.MSP430Constants;
import se.sics.mspsim.platform.GenericNode; import se.sics.mspsim.platform.GenericNode;
import se.sics.mspsim.ui.JFrameWindowManager; import se.sics.mspsim.ui.JFrameWindowManager;
import se.sics.mspsim.util.ComponentRegistry; import se.sics.mspsim.util.ComponentRegistry;
@ -138,6 +137,7 @@ public abstract class MspMote extends AbstractEmulatedMote implements Mote, Watc
*/ */
public void stopNextInstruction() { public void stopNextInstruction() {
stopNextInstruction = true; stopNextInstruction = true;
getCPU().stop();
} }
protected MoteInterfaceHandler createMoteInterfaceHandler() { protected MoteInterfaceHandler createMoteInterfaceHandler() {