From 9a302b98979b33e89e6bb55beb323b521aff1b20 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Thu, 14 Nov 2002 21:02:51 +0000 Subject: [PATCH] Provide 2 new method getStackFrames(int low, int hi) getStackFrameCount(); --- .../cdt/debug/core/cdi/model/ICDIThread.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java index 9c532deedcf..3b15078b541 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java @@ -28,6 +28,25 @@ public interface ICDIThread extends ICDIObject { */ ICDIStackFrame[] getStackFrames() throws CDIException; + /** + * Returns the stack frames contained in this thread whose levels + * are between the two arguments(inclusive). + * An empty collection is returned if this thread contains + * no stack frames, or is not currently suspended. Stack frames + * are returned in top down order. + * + * @return a collection of stack frames + * @throws CDIException if this method fails. Reasons include: + */ + ICDIStackFrame[] getStackFrames(int lowFrame, int highFrame) throws CDIException; + + /** + * Returns the depth of the stack frames + * @return depth of stack frames + * @throws CDIException if this method fails. Reasons include: + */ + int getStackFrameCount() throws CDIException; + /** * Set the curretn Stack for the thread. * @param - ICDIStackFrame