From f328a8a483407e80d0b65d8c5b7a0deab9a2a04b Mon Sep 17 00:00:00 2001 From: Niclas Finne Date: Fri, 20 Apr 2012 21:15:05 +0200 Subject: [PATCH] Stop the CPU when a breakpoint is triggered --- tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMote.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMote.java b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMote.java index 2f7fdaa50..2b8789e00 100644 --- a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMote.java +++ b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMote.java @@ -64,7 +64,6 @@ import se.sics.mspsim.cli.LineListener; import se.sics.mspsim.cli.LineOutputStream; import se.sics.mspsim.core.EmulationException; import se.sics.mspsim.core.MSP430; -import se.sics.mspsim.core.MSP430Constants; import se.sics.mspsim.platform.GenericNode; import se.sics.mspsim.ui.JFrameWindowManager; import se.sics.mspsim.util.ComponentRegistry; @@ -138,6 +137,7 @@ public abstract class MspMote extends AbstractEmulatedMote implements Mote, Watc */ public void stopNextInstruction() { stopNextInstruction = true; + getCPU().stop(); } protected MoteInterfaceHandler createMoteInterfaceHandler() {