1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

Fix for bug 68316: Exception shutting down Eclipse with an active debug session.

This commit is contained in:
Mikhail Khodjaiants 2004-06-23 15:58:15 +00:00
parent d94a068c23
commit f4ba258cd6
3 changed files with 15 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2004-06-23 Mikhail Khodjaiants
Fix for bug 68316: Exception shutting down Eclipse with an active debug session.
* CStackFrame.java
* CThread.java
2004-06-22 Mikhail Khodjaiants
Replaced global resource bundles by messages.

View file

@ -519,6 +519,12 @@ public class CStackFrame extends CDebugElement implements ICStackFrame, IRestart
if ( adapter == IRunToAddress.class ) {
return getDebugTarget().getAdapter( adapter );
}
if ( adapter == CStackFrame.class ) {
return this;
}
if ( adapter == ICStackFrame.class ) {
return this;
}
if ( adapter == IStackFrame.class ) {
return this;
}

View file

@ -750,9 +750,10 @@ public class CThread extends CDebugElement
Iterator it = fStackFrames.iterator();
while( it.hasNext() )
{
CStackFrame frame = (CStackFrame)(((IAdaptable)it.next()).getAdapter( CStackFrame.class ));
if ( frame != null )
frame.dispose();
Object obj = it.next();
if ( obj instanceof CStackFrame ) {
((CStackFrame)obj).dispose();
}
}
fStackFrames.clear();
setLastStackDepth( 0 );