mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Fix for bug 81381: Deadlock when single stepping.
This commit is contained in:
parent
1c56aae7c8
commit
840aece508
2 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-12-16 Mikhail Khodjaiants
|
||||||
|
Fix for bug 81381: Deadlock when single stepping.
|
||||||
|
* CThread.java
|
||||||
|
|
||||||
2004-12-08 Mikhail Khodjaiants
|
2004-12-08 Mikhail Khodjaiants
|
||||||
Fix for bug 79678: NPE in Expression.
|
Fix for bug 79678: NPE in Expression.
|
||||||
* CExpression.java
|
* CExpression.java
|
||||||
|
|
|
@ -174,8 +174,7 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
|
||||||
addStackFrames( frames, 0, depth - getLastStackDepth() );
|
addStackFrames( frames, 0, depth - getLastStackDepth() );
|
||||||
updateStackFrames( frames, depth - getLastStackDepth(), fStackFrames, frames.length - depth + getLastStackDepth() );
|
updateStackFrames( frames, depth - getLastStackDepth(), fStackFrames, frames.length - depth + getLastStackDepth() );
|
||||||
}
|
}
|
||||||
else // depth == getLastStackDepth()
|
else { // depth == getLastStackDepth()
|
||||||
{
|
|
||||||
if ( depth != 0 ) {
|
if ( depth != 0 ) {
|
||||||
// same number of frames - if top frames are in different
|
// same number of frames - if top frames are in different
|
||||||
// function, replace all frames
|
// function, replace all frames
|
||||||
|
@ -246,7 +245,6 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
|
||||||
for( int i = 0; i < length; i++ ) {
|
for( int i = 0; i < length; i++ ) {
|
||||||
CStackFrame frame = (CStackFrame)oldFrames.get( offset );
|
CStackFrame frame = (CStackFrame)oldFrames.get( offset );
|
||||||
frame.setCDIStackFrame( newFrames[offset] );
|
frame.setCDIStackFrame( newFrames[offset] );
|
||||||
frame.fireChangeEvent( DebugEvent.STATE );
|
|
||||||
offset++;
|
offset++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue