From b3ae7fedaaf05ed7dc88956334ed17058e9c1626 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Thu, 10 Oct 2002 22:04:59 +0000 Subject: [PATCH] Check if the level is already set in setCurrentStackFrame() if yes make it a noop. --- .../src/org/eclipse/cdt/debug/mi/core/cdi/CThread.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/CThread.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/CThread.java index c2678e4a296..fd1750f803f 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/CThread.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/CThread.java @@ -99,6 +99,14 @@ public class CThread extends CObject implements ICDIThread { if (stackframe != null) { frameNum = stackframe.getLevel(); } + + // Check to see if we are already at this level + StackFrame current = getCurrentStackFrame(); + if (current.getLevel() == frameNum) { + // noop + return; + } + MIStackSelectFrame frame = factory.createMIStackSelectFrame(frameNum); try { // Set ourself as the current thread first.