mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
CThread cleanup.
This commit is contained in:
parent
98f3ab7804
commit
eef4388433
2 changed files with 14 additions and 11 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-07-21 Mikhail Khodjaiants
|
||||||
|
CThread cleanup.
|
||||||
|
* CThread.java
|
||||||
|
|
||||||
2004-07-21 Mikhail Khodjaiants
|
2004-07-21 Mikhail Khodjaiants
|
||||||
Copied the target factory methods from CDebugModel to CDIDebugModel.
|
Copied the target factory methods from CDebugModel to CDIDebugModel.
|
||||||
Marked the old methods as deprecated.
|
Marked the old methods as deprecated.
|
||||||
|
|
|
@ -59,8 +59,6 @@ import org.eclipse.debug.core.model.IStackFrame;
|
||||||
*/
|
*/
|
||||||
public class CThread extends CDebugElement implements ICThread, IRestart, IResumeWithoutSignal, ISwitchToFrame, ICDIEventListener {
|
public class CThread extends CDebugElement implements ICThread, IRestart, IResumeWithoutSignal, ISwitchToFrame, ICDIEventListener {
|
||||||
|
|
||||||
private boolean fSuspending;
|
|
||||||
|
|
||||||
private final static int MAX_STACK_DEPTH = 100;
|
private final static int MAX_STACK_DEPTH = 100;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -88,10 +86,19 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
|
||||||
*/
|
*/
|
||||||
private boolean fIsCurrent = false;
|
private boolean fIsCurrent = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The last selected frame in this thread, <code>null</code> if thread is not suspended.
|
||||||
|
*/
|
||||||
private CStackFrame fLastStackFrame = null;
|
private CStackFrame fLastStackFrame = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The depth of the current stack.
|
||||||
|
*/
|
||||||
private int fLastStackDepth = 0;
|
private int fLastStackDepth = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether this thread is disposed.
|
||||||
|
*/
|
||||||
private boolean fDisposed = false;
|
private boolean fDisposed = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -450,14 +457,6 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void setSuspending( boolean value ) {
|
|
||||||
fSuspending = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected boolean isSuspending() {
|
|
||||||
return fSuspending;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.debug.core.model.IStep#canStepInto()
|
* @see org.eclipse.debug.core.model.IStep#canStepInto()
|
||||||
*/
|
*/
|
||||||
|
@ -680,7 +679,6 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
|
||||||
protected void terminated() {
|
protected void terminated() {
|
||||||
setState( CDebugElementState.TERMINATED );
|
setState( CDebugElementState.TERMINATED );
|
||||||
dispose();
|
dispose();
|
||||||
cleanup();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleSuspendedEvent( ICDISuspendedEvent event ) {
|
private void handleSuspendedEvent( ICDISuspendedEvent event ) {
|
||||||
|
@ -869,6 +867,7 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
|
||||||
|
|
||||||
protected void dispose() {
|
protected void dispose() {
|
||||||
fDisposed = true;
|
fDisposed = true;
|
||||||
|
cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean isDisposed() {
|
protected boolean isDisposed() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue