1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-01 05:15:43 +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 2004-06-22 Mikhail Khodjaiants
Replaced global resource bundles by messages. Replaced global resource bundles by messages.

View file

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

View file

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