From 0abe44597414e5ae2d1431a734375edbcde8ce11 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Thu, 20 Nov 2003 22:22:22 +0000 Subject: [PATCH] Do not Disable the events. Part of FIX for 46313 --- .../cdt/debug/mi/core/cdi/BreakpointManager.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java index a641d53793f..b54c7be1206 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java @@ -25,7 +25,6 @@ import org.eclipse.cdt.debug.mi.core.MISession; import org.eclipse.cdt.debug.mi.core.cdi.model.Breakpoint; import org.eclipse.cdt.debug.mi.core.cdi.model.Target; import org.eclipse.cdt.debug.mi.core.cdi.model.Watchpoint; -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.MIBreakAfter; import org.eclipse.cdt.debug.mi.core.command.MIBreakCondition; @@ -103,23 +102,14 @@ public class BreakpointManager extends SessionObject implements ICDIBreakpointMa boolean suspendInferior(ICDITarget target) throws CDIException { boolean shouldRestart = false; - Session session = (Session)getSession(); // Stop the program if (allowInterrupt) { if (target instanceof Target) { Target ctarget = (Target)target; // Disable events. if (ctarget.isRunning()) { - EventManager mgr = (EventManager)session.getEventManager(); - Command cmd = ctarget.getLastExecutionCommand(); - int lastToken = 0; - if (cmd != null) { - lastToken = cmd.getToken(); - } - mgr.disableEventToken(lastToken); ctarget.suspend(); shouldRestart = true; - mgr.enableEventToken(lastToken); } } else if (!target.isSuspended()) { target.suspend();