From a90de5234d56fcd48ee5127590142f008e33784d Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Fri, 23 Jan 2004 05:04:20 +0000 Subject: [PATCH] Cache the stackframes to reduce the chatting between GDB. --- .../src/org/eclipse/cdt/debug/mi/core/cdi/model/Thread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Thread.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Thread.java index 79fc9360071..f1acc328ca4 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Thread.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Thread.java @@ -224,7 +224,7 @@ public class Thread extends CObject implements ICDIThread { } } } - List list = currentFrames.subList(low, high); + List list = ((high - low + 1) <= currentFrames.size()) ? currentFrames.subList(low, high + 1) : currentFrames; return (ICDIStackFrame[])list.toArray(noStack); }