From dce9fa5722852033b15c022506f164c2b8dfc462 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Thu, 9 Jan 2003 20:55:34 +0000 Subject: [PATCH] Use setCurrentFrame() with event disable. --- .../eclipse/cdt/debug/mi/core/cdi/model/CThread.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/CThread.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/CThread.java index 22d9b139076..7ac85070085 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/CThread.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/CThread.java @@ -67,7 +67,7 @@ public class CThread extends CObject implements ICDIThread { MIStackListFrames frames = factory.createMIStackListFrames(); try { ICDIThread oldThread = getCTarget().getCurrentThread(); - getCTarget().setCurrentThread(this); + getCTarget().setCurrentThread(this, false); mi.postCommand(frames); MIStackListFramesInfo info = frames.getMIStackListFramesInfo(); if (info == null) { @@ -78,7 +78,7 @@ public class CThread extends CObject implements ICDIThread { for (int i = 0; i < stack.length; i++) { stack[i] = new StackFrame(this, miFrames[i]); } - getCTarget().setCurrentThread(oldThread); + getCTarget().setCurrentThread(oldThread, false); return stack; } catch (MIException e) { //throw new CDIException(e.getMessage()); @@ -100,13 +100,13 @@ public class CThread extends CObject implements ICDIThread { MIStackInfoDepth depth = factory.createMIStackInfoDepth(); try { ICDIThread oldThread = getCTarget().getCurrentThread(); - getCTarget().setCurrentThread(this); + getCTarget().setCurrentThread(this, false); mi.postCommand(depth); MIStackInfoDepthInfo info = depth.getMIStackInfoDepthInfo(); if (info == null) { throw new CDIException("No answer"); } - getCTarget().setCurrentThread(oldThread); + getCTarget().setCurrentThread(oldThread, false); return info.getDepth(); } catch (MIException e) { throw new MI2CDIException(e); @@ -126,7 +126,7 @@ public class CThread extends CObject implements ICDIThread { MIStackListFrames frames = factory.createMIStackListFrames(low, high); try { ICDIThread oldThread = getCTarget().getCurrentThread(); - getCTarget().setCurrentThread(this); + getCTarget().setCurrentThread(this, false); mi.postCommand(frames); MIStackListFramesInfo info = frames.getMIStackListFramesInfo(); if (info == null) { @@ -137,7 +137,7 @@ public class CThread extends CObject implements ICDIThread { for (int i = 0; i < stack.length; i++) { stack[i] = new StackFrame(this, miFrames[i]); } - getCTarget().setCurrentThread(oldThread); + getCTarget().setCurrentThread(oldThread, false); return stack; } catch (MIException e) { //throw new CDIException(e.getMessage());