1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00

Bug 118809: Failure to evaluate stack frame. Previous fix didn't work for stack depths > 100.

This commit is contained in:
Mikhail Khodjaiants 2005-12-16 20:45:48 +00:00
parent a5585ba6b6
commit 556fda170b
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-12-16 Mikhail Khodjaiants
Bug 118809: Failure to evaluate stack frame.
Previous fix didn't work for stack depths > 100.
* CThread.java
2005-12-08 Mikhail Khodjaiants
Bug 118809: Failure to evaluate stack frame.
* CThread.java

View file

@ -152,7 +152,9 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
}
// Retrieve stack frames from the backend
int depth = getStackDepth();
ICDIStackFrame[] frames = ( depth != 0 ) ? getCDIStackFrames( 0, ( depth >= getMaxStackDepth() ) ? getMaxStackDepth() - 1 : depth ) : new ICDIStackFrame[0];
if ( depth >= getMaxStackDepth() )
depth = getMaxStackDepth() - 1;
ICDIStackFrame[] frames = ( depth != 0 ) ? getCDIStackFrames( 0, depth ) : new ICDIStackFrame[0];
if ( fStackFrames.isEmpty() ) {
if ( frames.length > 0 ) {