1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

Bug 155275: Exception when stepping.

This commit is contained in:
Mikhail Khodjaiants 2006-08-29 10:46:38 +00:00
parent 75c4506a6e
commit 66b8cbde90
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2006-08-29 Mikhail Khodjaiants
Bug 155275: Exception when stepping.
* CThread.java
2006-08-14 Mikhail Khodjaiants
Bug 136896: View variables in binary format.
Applied modified patch from Mark Mitchell (CodeSourcery).

View file

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