Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] ICDIThread extensions

2002-11-14 Alain Magloire

        This is needed in post-mortem, application doing a 
        very deep recursion and crashing the stack size, for example
        on GNU/Linux it may reach 200000 levels deep.  Trying to
        bring in the UI a bactrace tree of 200000 nodes is useless.
        The UI could check the count and do the appropriate action
        by showing ranges etc ..

        * src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java (getStackFrames):        New method to provide a range lowFrame and highFrame.
        (getStackFrameCount): New method returns the depth level
        of the stackframes.
        

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/ChangeLog,v
retrieving revision 1.50
diff -u -r1.50 ChangeLog
--- ChangeLog	13 Nov 2002 21:01:51 -0000	1.50
+++ ChangeLog	14 Nov 2002 21:02:08 -0000
@@ -1,3 +1,10 @@
+2002-11-14 Alain Magloire
+
+	* src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java (getStackFrames):
+	New method to provide a range lowFrame and highFrame.
+	(getStackFrameCount): New method returns the depth level
+	of the stackframes.
+	
 2002-11-13 Mikhail Khodjaiants
 	Fix for the stepping problem if the selected stack frame is not the topmost one.
 	* CStackFrame.java: The 'stepToFrame' method is temporary replaced by corresponding step method.
Index: src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java,v
retrieving revision 1.6
diff -u -r1.6 ICDIThread.java
--- src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java	20 Sep 2002 18:42:52 -0000	1.6
+++ src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java	14 Nov 2002 21:02:08 -0000
@@ -29,6 +29,25 @@
 	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
 	 */



Back to the top