mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Additional checks for the situation when the stack depth is not 0 and the frame array is empty.
This commit is contained in:
parent
9806035059
commit
e01e638264
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-04-23 Mikhail Khodjaiants
|
||||||
|
Additional checks for the situation when the stack depth is not 0 and
|
||||||
|
the frame array is empty.
|
||||||
|
* CThread.java
|
||||||
|
|
||||||
2003-04-22 Mikhail Khodjaiants
|
2003-04-22 Mikhail Khodjaiants
|
||||||
Disconnect: terminate should be called from the disconnect event handler.
|
Disconnect: terminate should be called from the disconnect event handler.
|
||||||
* CDebugTarget.java
|
* CDebugTarget.java
|
||||||
|
|
|
@ -218,9 +218,9 @@ public class CThread extends CDebugElement
|
||||||
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
|
||||||
// method, replace all frames
|
// function, replace all frames
|
||||||
ICDIStackFrame newTopFrame = frames[0];
|
ICDIStackFrame newTopFrame = ( frames.length > 0 ) ? frames[0] : null;
|
||||||
ICDIStackFrame oldTopFrame = ((CStackFrame)fStackFrames.get( 0 ) ).getLastCDIStackFrame();
|
ICDIStackFrame oldTopFrame = ( fStackFrames.size() > 0 ) ? ((CStackFrame)fStackFrames.get( 0 ) ).getLastCDIStackFrame() : null;
|
||||||
if ( !CStackFrame.equalFrame( newTopFrame, oldTopFrame ) )
|
if ( !CStackFrame.equalFrame( newTopFrame, oldTopFrame ) )
|
||||||
{
|
{
|
||||||
disposeStackFrames( 0, fStackFrames.size() );
|
disposeStackFrames( 0, fStackFrames.size() );
|
||||||
|
|
Loading…
Add table
Reference in a new issue