|
||||||||||
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.CStackFrame
public class CStackFrame
Proxy to a stack frame on the target.
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.debug.core.model.ICDebugElementStatus |
---|
ERROR, OK, WARNING |
Constructor Summary | |
---|---|
CStackFrame(CThread thread,
org.eclipse.cdt.debug.core.cdi.model.ICDIStackFrame cdiFrame)
Constructor for CStackFrame. |
Method Summary | |
---|---|
boolean |
canEvaluate()
Returns whether this stack frame can currently evaluate an expression. |
boolean |
canJumpToAddress(IAddress address)
Returns whether this operation is currently available for this element. |
boolean |
canJumpToLine(org.eclipse.core.resources.IFile file,
int lineNumber)
Returns whether this operation is currently available for this file and line number. |
boolean |
canJumpToLine(java.lang.String fileName,
int lineNumber)
Returns whether this operation is currently available for this file and line number. |
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 |
canRunToAddress(IAddress address)
Returns whether this operation is currently available for this element. |
boolean |
canRunToLine(org.eclipse.core.resources.IFile file,
int lineNumber)
Returns whether this operation is currently available for this file and line number. |
boolean |
canRunToLine(java.lang.String fileName,
int lineNumber)
Returns whether this operation is currently available for this file and line number. |
boolean |
canStepInto()
|
boolean |
canStepOver()
|
boolean |
canStepReturn()
|
boolean |
canSuspend()
|
boolean |
canTerminate()
|
org.eclipse.debug.core.model.IValue |
evaluateExpression(java.lang.String expressionText)
Evaluates the given expression in the context of this stack frame. |
java.lang.String |
evaluateExpressionToString(java.lang.String expression)
Evaluates the specified expression in the context of this stack frame and returns the evaluation result as a string. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
IAddress |
getAddress()
Returns the address of this stack frame. |
int |
getCharEnd()
|
int |
getCharStart()
|
java.lang.String |
getFile()
Returns the source file of this stack frame or null
if the source file is unknown. |
int |
getFrameLineNumber()
Returns the line number of this stack frame or 0
if the line number is unknown. |
java.lang.String |
getFunction()
Returns the function of this stack frame or null
if the function is unknown. |
int |
getLevel()
Returns the level of this stack frame. |
int |
getLineNumber()
|
java.lang.String |
getName()
|
org.eclipse.debug.core.model.IRegisterGroup[] |
getRegisterGroups()
|
org.eclipse.debug.core.model.IThread |
getThread()
|
org.eclipse.debug.core.model.IVariable[] |
getVariables()
|
void |
handleDebugEvents(org.eclipse.cdt.debug.core.cdi.event.ICDIEvent[] events)
|
boolean |
hasRegisterGroups()
|
boolean |
hasVariables()
|
boolean |
isStepping()
|
boolean |
isSuspended()
|
boolean |
isTerminated()
|
void |
jumpToAddress(IAddress address)
Causes this element to resume the execution at the specified address. |
void |
jumpToLine(org.eclipse.core.resources.IFile file,
int lineNumber)
Causes this element to resume the execution at the specified line. |
void |
jumpToLine(java.lang.String fileName,
int lineNumber)
Causes this element to resume the execution at the specified line. |
void |
restart()
Causes this element to restart its execution. |
void |
resume()
|
void |
resumeWithoutSignal()
Causes this element to resume its execution ignoring a signal. |
void |
runToAddress(IAddress address,
boolean skipBreakpoints)
Causes this element to run to specified address. |
void |
runToLine(org.eclipse.core.resources.IFile file,
int lineNumber,
boolean skipBreakpoints)
Causes this element to run to specified location. |
void |
runToLine(java.lang.String fileName,
int lineNumber,
boolean skipBreakpoints)
Causes this element to run to specified location. |
void |
setRefreshVariables(boolean refresh)
|
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 CStackFrame(CThread thread, org.eclipse.cdt.debug.core.cdi.model.ICDIStackFrame cdiFrame)
Method Detail |
---|
public org.eclipse.debug.core.model.IThread getThread()
getThread
in interface org.eclipse.debug.core.model.IStackFrame
public org.eclipse.debug.core.model.IVariable[] getVariables() throws org.eclipse.debug.core.DebugException
getVariables
in interface org.eclipse.debug.core.model.IStackFrame
org.eclipse.debug.core.DebugException
public boolean hasVariables() throws org.eclipse.debug.core.DebugException
hasVariables
in interface org.eclipse.debug.core.model.IStackFrame
org.eclipse.debug.core.DebugException
public int getLineNumber() throws org.eclipse.debug.core.DebugException
getLineNumber
in interface org.eclipse.debug.core.model.IStackFrame
org.eclipse.debug.core.DebugException
public int getCharStart() throws org.eclipse.debug.core.DebugException
getCharStart
in interface org.eclipse.debug.core.model.IStackFrame
org.eclipse.debug.core.DebugException
public int getCharEnd() throws org.eclipse.debug.core.DebugException
getCharEnd
in interface org.eclipse.debug.core.model.IStackFrame
org.eclipse.debug.core.DebugException
public java.lang.String getName() throws org.eclipse.debug.core.DebugException
getName
in interface org.eclipse.debug.core.model.IStackFrame
org.eclipse.debug.core.DebugException
public org.eclipse.debug.core.model.IRegisterGroup[] getRegisterGroups() throws org.eclipse.debug.core.DebugException
getRegisterGroups
in interface org.eclipse.debug.core.model.IStackFrame
org.eclipse.debug.core.DebugException
public boolean hasRegisterGroups() throws org.eclipse.debug.core.DebugException
hasRegisterGroups
in interface org.eclipse.debug.core.model.IStackFrame
org.eclipse.debug.core.DebugException
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 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 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 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 java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class CDebugElement
IAdaptable.getAdapter(Class)
public IAddress getAddress()
ICStackFrame
getAddress
in interface ICStackFrame
public java.lang.String getFile()
ICStackFrame
null
if the source file is unknown.
getFile
in interface ICStackFrame
public java.lang.String getFunction()
ICStackFrame
null
if the function is unknown.
getFunction
in interface ICStackFrame
public int getLevel()
ICStackFrame
getLevel
in interface ICStackFrame
public int getFrameLineNumber()
ICStackFrame
0
if the line number is unknown.
getFrameLineNumber
in interface ICStackFrame
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 void setRefreshVariables(boolean refresh)
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 org.eclipse.debug.core.model.IValue evaluateExpression(java.lang.String expressionText) throws org.eclipse.debug.core.DebugException
ICStackFrame
evaluateExpression
in interface ICStackFrame
expressionText
- expression to evaluate
org.eclipse.debug.core.DebugException
- if this method fails.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String evaluateExpressionToString(java.lang.String expression) throws org.eclipse.debug.core.DebugException
ICStackFrame
evaluateExpressionToString
in interface ICStackFrame
expression
- the expression to evaluate
org.eclipse.debug.core.DebugException
- on failure. Reasons include:public boolean canEvaluate()
ICStackFrame
canEvaluate
in interface ICStackFrame
public boolean canRunToLine(org.eclipse.core.resources.IFile file, int lineNumber)
IRunToLine
canRunToLine
in interface IRunToLine
public void runToLine(org.eclipse.core.resources.IFile file, int lineNumber, boolean skipBreakpoints) throws org.eclipse.debug.core.DebugException
IRunToLine
runToLine
in interface IRunToLine
org.eclipse.debug.core.DebugException
- on failure. Reasons include:public boolean canRunToLine(java.lang.String fileName, int lineNumber)
IRunToLine
canRunToLine
in interface IRunToLine
public void runToLine(java.lang.String fileName, int lineNumber, boolean skipBreakpoints) throws org.eclipse.debug.core.DebugException
IRunToLine
runToLine
in interface IRunToLine
org.eclipse.debug.core.DebugException
- on failure. Reasons include:public boolean canRunToAddress(IAddress address)
IRunToAddress
canRunToAddress
in interface IRunToAddress
public void runToAddress(IAddress address, boolean skipBreakpoints) throws org.eclipse.debug.core.DebugException
IRunToAddress
runToAddress
in interface IRunToAddress
org.eclipse.debug.core.DebugException
- on failure. Reasons include:public boolean canJumpToLine(org.eclipse.core.resources.IFile file, int lineNumber)
IJumpToLine
canJumpToLine
in interface IJumpToLine
public void jumpToLine(org.eclipse.core.resources.IFile file, int lineNumber) throws org.eclipse.debug.core.DebugException
IJumpToLine
jumpToLine
in interface IJumpToLine
org.eclipse.debug.core.DebugException
- on failure. Reasons include:public boolean canJumpToLine(java.lang.String fileName, int lineNumber)
IJumpToLine
canJumpToLine
in interface IJumpToLine
public void jumpToLine(java.lang.String fileName, int lineNumber) throws org.eclipse.debug.core.DebugException
IJumpToLine
jumpToLine
in interface IJumpToLine
org.eclipse.debug.core.DebugException
- on failure. Reasons include:public boolean canJumpToAddress(IAddress address)
IJumpToAddress
canJumpToAddress
in interface IJumpToAddress
public void jumpToAddress(IAddress address) throws org.eclipse.debug.core.DebugException
IJumpToAddress
jumpToAddress
in interface IJumpToAddress
org.eclipse.debug.core.DebugException
- on failure. Reasons include:
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |