|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.cdt.debug.internal.core.model.CDebugElement
org.eclipse.cdt.debug.internal.core.model.CThread
public class CThread
A thread in a C/C++ debug model.
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.debug.core.model.ICDebugElementStatus |
---|
ERROR, OK, WARNING |
Constructor Summary | |
---|---|
CThread(CDebugTarget target,
org.eclipse.cdt.debug.core.cdi.model.ICDIThread cdiThread)
Constructor for CThread. |
Method Summary | |
---|---|
boolean |
canRestart()
Returns whether this element can currently be restarted. |
boolean |
canResume()
|
boolean |
canResumeWithoutSignal()
Returns whether this element can currently be resumed without signal. |
boolean |
canStepInto()
|
boolean |
canStepOver()
|
boolean |
canStepReturn()
|
boolean |
canSuspend()
|
boolean |
canTerminate()
|
java.util.List |
computeNewStackFrames()
|
java.util.List |
computeStackFrames()
Returns this thread's current stack frames as a list, computing them if required. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
org.eclipse.debug.core.model.IBreakpoint[] |
getBreakpoints()
|
java.lang.String |
getName()
|
int |
getPriority()
|
org.eclipse.debug.core.model.IStackFrame[] |
getStackFrames()
|
org.eclipse.debug.core.model.IStackFrame |
getTopStackFrame()
|
void |
handleDebugEvents(org.eclipse.cdt.debug.core.cdi.event.ICDIEvent[] events)
|
boolean |
hasStackFrames()
|
boolean |
isStepping()
|
boolean |
isSuspended()
|
boolean |
isTerminated()
|
void |
restart()
Causes this element to restart its execution. |
void |
resume()
|
void |
resumeWithoutSignal()
Causes this element to resume its execution ignoring a signal. |
void |
stepInto()
|
void |
stepOver()
|
void |
stepReturn()
|
void |
suspend()
|
void |
terminate()
|
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.cdt.debug.internal.core.model.CDebugElement |
---|
createChangeEvent, createCreateEvent, createResumeEvent, createSuspendEvent, createTerminateEvent, fireChangeEvent, fireCreationEvent, fireResumeEvent, fireSuspendEvent, fireTerminateEvent, getCDISession, getCDITarget, getCurrentStateInfo, getDebugTarget, getLaunch, getMessage, getModelIdentifier, getSeverity, getState, isOK, notSupported, requestFailed, requestFailed, targetRequestFailed, targetRequestFailed |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement |
---|
getDebugTarget, getLaunch, getModelIdentifier |
Methods inherited from interface org.eclipse.cdt.debug.core.model.ICDebugElement |
---|
getCurrentStateInfo, getState |
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement |
---|
getDebugTarget, getLaunch, getModelIdentifier |
Constructor Detail |
---|
public CThread(CDebugTarget target, org.eclipse.cdt.debug.core.cdi.model.ICDIThread cdiThread)
Method Detail |
---|
public org.eclipse.debug.core.model.IStackFrame[] getStackFrames() throws org.eclipse.debug.core.DebugException
getStackFrames
in interface org.eclipse.debug.core.model.IThread
org.eclipse.debug.core.DebugException
public boolean hasStackFrames() throws org.eclipse.debug.core.DebugException
hasStackFrames
in interface org.eclipse.debug.core.model.IThread
org.eclipse.debug.core.DebugException
public java.util.List computeStackFrames() throws org.eclipse.debug.core.DebugException
#getStackFrames()
,
which makes a copy of the current list.
Before a thread is resumed a call must be made to one of:
preserveStackFrames()
disposeStackFrames()
IStackFrame
org.eclipse.debug.core.DebugException
- if this method fails. Reasons include:
public java.util.List computeNewStackFrames() throws org.eclipse.debug.core.DebugException
org.eclipse.debug.core.DebugException
This method differs from computeStackFrames() in that it always requests new stack frames from the target. As this is an expensive operation, this method
should only be used by clients who know for certain that the stack frames on the target have changed.
public int getPriority() throws org.eclipse.debug.core.DebugException
getPriority
in interface org.eclipse.debug.core.model.IThread
org.eclipse.debug.core.DebugException
public org.eclipse.debug.core.model.IStackFrame getTopStackFrame() throws org.eclipse.debug.core.DebugException
getTopStackFrame
in interface org.eclipse.debug.core.model.IThread
org.eclipse.debug.core.DebugException
public java.lang.String getName() throws org.eclipse.debug.core.DebugException
getName
in interface org.eclipse.debug.core.model.IThread
org.eclipse.debug.core.DebugException
public org.eclipse.debug.core.model.IBreakpoint[] getBreakpoints()
getBreakpoints
in interface org.eclipse.debug.core.model.IThread
public void handleDebugEvents(org.eclipse.cdt.debug.core.cdi.event.ICDIEvent[] events)
handleDebugEvents
in interface org.eclipse.cdt.debug.core.cdi.event.ICDIEventListener
public boolean canResume()
canResume
in interface org.eclipse.debug.core.model.ISuspendResume
public boolean canSuspend()
canSuspend
in interface org.eclipse.debug.core.model.ISuspendResume
public boolean isSuspended()
isSuspended
in interface org.eclipse.debug.core.model.ISuspendResume
public void resume() throws org.eclipse.debug.core.DebugException
resume
in interface org.eclipse.debug.core.model.ISuspendResume
org.eclipse.debug.core.DebugException
public void suspend() throws org.eclipse.debug.core.DebugException
suspend
in interface org.eclipse.debug.core.model.ISuspendResume
org.eclipse.debug.core.DebugException
public boolean canStepInto()
canStepInto
in interface org.eclipse.debug.core.model.IStep
public boolean canStepOver()
canStepOver
in interface org.eclipse.debug.core.model.IStep
public boolean canStepReturn()
canStepReturn
in interface org.eclipse.debug.core.model.IStep
public boolean isStepping()
isStepping
in interface org.eclipse.debug.core.model.IStep
public void stepInto() throws org.eclipse.debug.core.DebugException
stepInto
in interface org.eclipse.debug.core.model.IStep
org.eclipse.debug.core.DebugException
public void stepOver() throws org.eclipse.debug.core.DebugException
stepOver
in interface org.eclipse.debug.core.model.IStep
org.eclipse.debug.core.DebugException
public void stepReturn() throws org.eclipse.debug.core.DebugException
stepReturn
in interface org.eclipse.debug.core.model.IStep
org.eclipse.debug.core.DebugException
public boolean canTerminate()
canTerminate
in interface org.eclipse.debug.core.model.ITerminate
public boolean isTerminated()
isTerminated
in interface org.eclipse.debug.core.model.ITerminate
public void terminate() throws org.eclipse.debug.core.DebugException
terminate
in interface org.eclipse.debug.core.model.ITerminate
org.eclipse.debug.core.DebugException
public boolean canRestart()
IRestart
canRestart
in interface IRestart
public void restart() throws org.eclipse.debug.core.DebugException
IRestart
restart
in interface IRestart
org.eclipse.debug.core.DebugException
- on failure. Reasons include:public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class CDebugElement
public boolean canResumeWithoutSignal()
IResumeWithoutSignal
canResumeWithoutSignal
in interface IResumeWithoutSignal
public void resumeWithoutSignal() throws org.eclipse.debug.core.DebugException
IResumeWithoutSignal
resumeWithoutSignal
in interface IResumeWithoutSignal
org.eclipse.debug.core.DebugException
- on failure. Reasons include:public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |