1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Fix for bug 81381: Deadlock when single stepping.

This commit is contained in:
Mikhail Khodjaiants 2004-12-16 21:26:10 +00:00
parent 1c56aae7c8
commit 840aece508
2 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2004-12-16 Mikhail Khodjaiants
Fix for bug 81381: Deadlock when single stepping.
* CThread.java
2004-12-08 Mikhail Khodjaiants
Fix for bug 79678: NPE in Expression.
* CExpression.java

View file

@ -174,8 +174,7 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
addStackFrames( frames, 0, depth - getLastStackDepth() );
updateStackFrames( frames, depth - getLastStackDepth(), fStackFrames, frames.length - depth + getLastStackDepth() );
}
else // depth == getLastStackDepth()
{
else { // depth == getLastStackDepth()
if ( depth != 0 ) {
// same number of frames - if top frames are in different
// function, replace all frames
@ -246,7 +245,6 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
for( int i = 0; i < length; i++ ) {
CStackFrame frame = (CStackFrame)oldFrames.get( offset );
frame.setCDIStackFrame( newFrames[offset] );
frame.fireChangeEvent( DebugEvent.STATE );
offset++;
}
}