mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
2004-11-19 Alain Magloire
Clear the confusion about sublist of stackframes. PR 78611 * cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIStackFrame.java * cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java * src/org/eclipse/cdt/debug/internal/model/CThread.java
This commit is contained in:
parent
deabf0e68b
commit
1cc0b27515
4 changed files with 17 additions and 5 deletions
|
@ -1,3 +1,12 @@
|
|||
2004-11-19 Alain Magloire
|
||||
|
||||
Clear the confusion about sublist of stackframes.
|
||||
PR 78611
|
||||
|
||||
* cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIStackFrame.java
|
||||
* cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java
|
||||
* src/org/eclipse/cdt/debug/internal/model/CThread.java
|
||||
|
||||
2004-11-17 David Inglis
|
||||
|
||||
Change debug target to use IBinaryObject instead of IBinaryExecutable
|
||||
|
|
|
@ -58,7 +58,7 @@ public interface ICDIStackFrame extends ICDIExecuteStepReturn, ICDIObject {
|
|||
ICDIThread getThread();
|
||||
|
||||
/**
|
||||
* Returns the level of the stack frame.
|
||||
* Returns the level of the stack frame, 1 based.
|
||||
*
|
||||
* @return the level of the stack frame
|
||||
*/
|
||||
|
|
|
@ -36,16 +36,19 @@ public interface ICDIThread extends ICDIExecuteStep, ICDIExecuteResume, ICDISusp
|
|||
ICDIStackFrame[] getStackFrames() throws CDIException;
|
||||
|
||||
/**
|
||||
* Returns the stack frames contained in this thread whose levels
|
||||
* are between the two arguments(inclusive).
|
||||
* Returns the stack frames contained in this thread between the specified
|
||||
* <tt>fromIndex</tt>, inclusive, and <tt>toIndex</tt>, exclusive.
|
||||
* 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:
|
||||
* @throws IndexOutOfBoundsException for an illegal endpoint index value
|
||||
* (fromIndex < 0 || toIndex > size || fromIndex > toIndex).
|
||||
|
||||
*/
|
||||
ICDIStackFrame[] getStackFrames(int lowFrame, int highFrame) throws CDIException;
|
||||
ICDIStackFrame[] getStackFrames(int fromIndex, int len) throws CDIException;
|
||||
|
||||
/**
|
||||
* Returns the depth of the stack frames.
|
||||
|
|
|
@ -154,7 +154,7 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
|
|||
}
|
||||
}
|
||||
int depth = getStackDepth();
|
||||
ICDIStackFrame[] frames = (depth != 0) ? getCDIStackFrames( 0, (depth > getMaxStackDepth()) ? getMaxStackDepth() - 1 : depth - 1 ) : new ICDIStackFrame[0];
|
||||
ICDIStackFrame[] frames = (depth != 0) ? getCDIStackFrames( 0, (depth > getMaxStackDepth()) ? getMaxStackDepth() : depth ) : new ICDIStackFrame[0];
|
||||
if ( fStackFrames.isEmpty() ) {
|
||||
addStackFrames( frames, 0, frames.length );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue