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:
parent
d94a068c23
commit
f4ba258cd6
3 changed files with 15 additions and 3 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue