From dc298fd1263ada41a976b156d1d797941ee1c61b Mon Sep 17 00:00:00 2001 From: Ken Ryall Date: Sat, 5 May 2007 00:19:48 +0000 Subject: [PATCH] Bug 176077 - Running threads flicker in Launch View when stepping in one thread. --- .../org/eclipse/cdt/debug/internal/core/model/CThread.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CThread.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CThread.java index 6f521d61d4a..6804f62b74e 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CThread.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CThread.java @@ -9,6 +9,7 @@ * QNX Software Systems - Initial API and implementation * Stefan Bylund (Enea, steby@enea.se) - patch for bug 155464 * Ken Ryall (Nokia) - Support for breakpoint actions (bug 118308) + * Ling Wang (Nokia) - Bug 176077 *******************************************************************************/ package org.eclipse.cdt.debug.internal.core.model; @@ -132,7 +133,11 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum * @see org.eclipse.debug.core.model.IThread#hasStackFrames() */ public boolean hasStackFrames() throws DebugException { - // Always return true to postpone the stack frames request + // Always return true to postpone the stack frames request. + // But not if the thread is already resumed. This fixes flickering in the Debug View. + if (getState().equals( CDebugElementState.RESUMED )) + return false; + return true; }