mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Bug 118809: Failure to evaluate stack frame. Previous fix didn't work for stack depths > 100.
This commit is contained in:
parent
a5585ba6b6
commit
556fda170b
2 changed files with 8 additions and 1 deletions
|
@ -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
|
2005-12-08 Mikhail Khodjaiants
|
||||||
Bug 118809: Failure to evaluate stack frame.
|
Bug 118809: Failure to evaluate stack frame.
|
||||||
* CThread.java
|
* CThread.java
|
||||||
|
|
|
@ -152,7 +152,9 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
|
||||||
}
|
}
|
||||||
// Retrieve stack frames from the backend
|
// Retrieve stack frames from the backend
|
||||||
int depth = getStackDepth();
|
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 ( fStackFrames.isEmpty() ) {
|
||||||
if ( frames.length > 0 ) {
|
if ( frames.length > 0 ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue