mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
Fix for the stepping problem if the selected stack frame is not the topmost one.
This commit is contained in:
parent
a8d882febe
commit
db8f9c2d4c
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2002-11-13 Mikhail Khodjaiants
|
||||
Fix for the stepping problem if the selected stack frame is not the topmost one.
|
||||
* CStackFrame.java: The 'stepToFrame' method is temporary replaced by corresponding step method.
|
||||
|
||||
2002-11-13
|
||||
* schema/CDebugger.exsd
|
||||
* src/org/eclipse/cdt/debug/core/ICDebugConfiguration.java
|
||||
|
|
|
@ -331,7 +331,8 @@ public class CStackFrame extends CDebugElement
|
|||
}
|
||||
else
|
||||
{
|
||||
((CThread)getThread()).stepToFrame( this );
|
||||
// ((CThread)getThread()).stepToFrame( this );
|
||||
getThread().stepOver(); // for now
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -350,6 +351,7 @@ public class CStackFrame extends CDebugElement
|
|||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
List frames = ((CThread)getThread()).computeStackFrames();
|
||||
int index = frames.indexOf( this );
|
||||
if ( index >= 0 && index < frames.size() - 1 )
|
||||
|
@ -357,6 +359,8 @@ public class CStackFrame extends CDebugElement
|
|||
IStackFrame nextFrame = (IStackFrame)frames.get( index + 1 );
|
||||
((CThread)getThread()).stepToFrame( nextFrame );
|
||||
}
|
||||
*/
|
||||
getThread().stepReturn(); // for now
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue