|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ptp.debug.core.pdi.Session
public class Session
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.ptp.debug.core.pdi.IPDISession |
|---|
CONNECTED, CONNECTING, DISCONNECTED, EXITED, EXITING, STARTED |
| Constructor Summary | |
|---|---|
Session(IPDIManagerFactory managerFactory,
IPDIRequestFactory requestFactory,
IPDIEventFactory eventFactory,
IPDIModelFactory modelFactory,
org.eclipse.debug.core.ILaunchConfiguration config,
long timeout,
IPDIDebugger debugger,
java.lang.String job_id,
int total_tasks)
|
|
| Method Summary | |
|---|---|
protected void |
checkStatus()
|
void |
connectToDebugger(org.eclipse.core.runtime.IProgressMonitor monitor,
java.lang.String app,
java.lang.String path,
java.lang.String dir,
java.lang.String[] args)
|
void |
exit()
Causes this session to exit |
IPDITarget |
findTarget(TaskSet qTasks)
Returns debug target on given task id or null if target is not registered |
IPDIBreakpointManager |
getBreakpointManager()
Returns the breakpoint manager for this session |
org.eclipse.debug.core.ILaunchConfiguration |
getConfiguration()
|
IPDIDebugger |
getDebugger()
IPDISession |
IPDIEventFactory |
getEventFactory()
Get the factory to create events for this session |
IPDIEventManager |
getEventManager()
Returns the event manager for this session |
IPDIEventRequestManager |
getEventRequestManager()
Returns the event request manager for this session |
IPDIExpressionManager |
getExpressionManager()
Returns the expression manager for this session |
java.lang.String |
getJobID()
Returns job id associated with this session |
IPDIMemoryManager |
getMemoryManager()
Returns the memory manager for this session |
IPDIModelFactory |
getModelFactory()
Get the factory to create model elements for this session |
IPDIRegisterManager |
getRegisterManager()
Returns the register manager for this session |
IPDIRequestFactory |
getRequestFactory()
Returns request factory |
IPDISession |
getSession()
Returns debug session |
IPDISignalManager |
getSignalManager()
Returns the signal manager for this session |
IPDISourceManager |
getSourceManager()
|
int |
getStatus()
Returns current status of this session |
IPDITargetManager |
getTargetManager()
Returns the target manager for this session |
IPDITaskManager |
getTaskManager()
Returns the task manager for this session |
TaskSet |
getTasks()
Returns all tasks of this session |
IPDIThreadManager |
getThreadManager()
Returns the thread manager for this session |
long |
getTimeout()
|
int |
getTotalTasks()
Returns total tasks in this session |
IPDIVariableManager |
getVariableManager()
Returns the variable manager for this session |
boolean |
isSuspended(TaskSet tasks)
Returns whether this target/thread is currently suspended. |
boolean |
isTerminated(TaskSet tasks)
Returns whether this target/thread is currently terminated. |
void |
processRunningEvent(TaskSet tasks)
|
void |
processSupsendedEvent(TaskSet tasks,
int thread_id,
java.lang.String[] vars)
|
void |
queueRunnable(java.lang.Runnable runnable)
Notify Job |
void |
restart(TaskSet tasks)
TODO not implemented yet in 2.0 Requests to restart of debugging |
void |
resume(TaskSet tasks,
boolean passSignal)
Causes this target to resume its execution. if passSignal is false and the target was suspended by a signal when resuming
the signal will be discarded Has no effect on a target that is not
suspended. |
void |
resume(TaskSet tasks,
IPDILocation location)
Resume execution at location. |
void |
resume(TaskSet tasks,
IPDISignal signal)
Resume execution where the program stopped but immediately give the signal. |
void |
setRequestTimeout(long timeout)
Sets a timeout for request |
void |
setStatus(int status)
Set status for session |
void |
shutdown(boolean force)
Shutdown this session |
void |
start(TaskSet tasks)
Starts specify process |
void |
stepInto(TaskSet tasks,
int count)
Steps into the current source line. |
void |
stepIntoInstruction(TaskSet tasks,
int count)
Steps into the current machine instruction. |
void |
stepOver(TaskSet tasks,
int count)
Steps over the current source line. if count <= 0 it is a loop. |
void |
stepOverInstruction(TaskSet tasks,
int count)
Steps over the current machine instruction. |
void |
stepReturn(TaskSet tasks,
IAIF aif)
Cancel execution of the frame and return with value. value can be null, if no return value is needed. |
void |
stepReturn(TaskSet tasks,
int count)
Continue execution until the frame return. |
void |
stepUntil(TaskSet tasks,
IPDILocation location)
Continues running until location is reached. |
void |
suspend(TaskSet tasks)
Causes this target/thread to suspend its execution. |
void |
terminate(TaskSet tasks)
Requests to terminate of specify process |
void |
validateStepReturn(TaskSet tasks)
Checks whether request tasks can do step return |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Session(IPDIManagerFactory managerFactory,
IPDIRequestFactory requestFactory,
IPDIEventFactory eventFactory,
IPDIModelFactory modelFactory,
org.eclipse.debug.core.ILaunchConfiguration config,
long timeout,
IPDIDebugger debugger,
java.lang.String job_id,
int total_tasks)
throws PDIException
PDIException| Method Detail |
|---|
public void connectToDebugger(org.eclipse.core.runtime.IProgressMonitor monitor,
java.lang.String app,
java.lang.String path,
java.lang.String dir,
java.lang.String[] args)
throws PDIException
connectToDebugger in interface IPDISessionPDIException - on failure
public void exit()
throws PDIException
IPDISession
exit in interface IPDISessionPDIException - on failure
public IPDITarget findTarget(TaskSet qTasks)
throws PDIException
IPDISession
findTarget in interface IPDISessionPDIException - on failurepublic IPDIBreakpointManager getBreakpointManager()
IPDISession
getBreakpointManager in interface IPDISessionpublic org.eclipse.debug.core.ILaunchConfiguration getConfiguration()
public IPDIDebugger getDebugger()
getDebugger in interface IPDISessionpublic IPDIEventFactory getEventFactory()
IPDISession
getEventFactory in interface IPDISessionpublic IPDIEventManager getEventManager()
IPDISession
getEventManager in interface IPDISessionpublic IPDIEventRequestManager getEventRequestManager()
IPDISession
getEventRequestManager in interface IPDISessionpublic IPDIExpressionManager getExpressionManager()
IPDISession
getExpressionManager in interface IPDISessionpublic java.lang.String getJobID()
IPDISession
getJobID in interface IPDISessionpublic IPDIMemoryManager getMemoryManager()
IPDISession
getMemoryManager in interface IPDISessionpublic IPDIModelFactory getModelFactory()
IPDISession
getModelFactory in interface IPDISessionpublic IPDIRegisterManager getRegisterManager()
IPDISession
getRegisterManager in interface IPDISessionpublic IPDIRequestFactory getRequestFactory()
IPDISession
getRequestFactory in interface IPDISessionpublic IPDISession getSession()
IPDISessionObject
getSession in interface IPDISessionObjectpublic IPDISignalManager getSignalManager()
IPDISession
getSignalManager in interface IPDISessionpublic IPDISourceManager getSourceManager()
getSourceManager in interface IPDISessionpublic int getStatus()
IPDISession
getStatus in interface IPDISessionpublic IPDITargetManager getTargetManager()
IPDISession
getTargetManager in interface IPDISessionpublic IPDITaskManager getTaskManager()
IPDISession
getTaskManager in interface IPDISessionpublic TaskSet getTasks()
IPDISession
getTasks in interface IPDISessiongetTasks in interface IPDISetpublic IPDIThreadManager getThreadManager()
IPDISession
getThreadManager in interface IPDISessionpublic long getTimeout()
getTimeout in interface IPDISessionpublic int getTotalTasks()
IPDISession
getTotalTasks in interface IPDISessionpublic IPDIVariableManager getVariableManager()
IPDISession
getVariableManager in interface IPDISessionpublic boolean isSuspended(TaskSet tasks)
IPDISession
isSuspended in interface IPDISessiontasks - target process
public boolean isTerminated(TaskSet tasks)
IPDISession
isTerminated in interface IPDISessiontasks - target process
public void processRunningEvent(TaskSet tasks)
processRunningEvent in interface IPDISession
public void processSupsendedEvent(TaskSet tasks,
int thread_id,
java.lang.String[] vars)
processSupsendedEvent in interface IPDISessionpublic void queueRunnable(java.lang.Runnable runnable)
queueRunnable in interface IPDISession
public void restart(TaskSet tasks)
throws PDIException
IPDIExecuteManagement
restart in interface IPDIExecuteManagementPDIException - on failure
public void resume(TaskSet tasks,
boolean passSignal)
throws PDIException
IPDIExecuteManagementfalse and the target was suspended by a signal when resuming
the signal will be discarded Has no effect on a target that is not
suspended.
resume in interface IPDIExecuteManagementtasks - target processpassSignal - whether to discard the signal
PDIException - on failure
public void resume(TaskSet tasks,
IPDILocation location)
throws PDIException
IPDIExecuteManagement
resume in interface IPDIExecuteManagementtasks - target process
PDIException - on failure
public void resume(TaskSet tasks,
IPDISignal signal)
throws PDIException
IPDIExecuteManagement
resume in interface IPDIExecuteManagementtasks - target process
PDIException - on failurepublic void setRequestTimeout(long timeout)
IPDISession
setRequestTimeout in interface IPDISessionpublic void setStatus(int status)
IPDISession
setStatus in interface IPDISessionstatus - status of current sessionpublic void shutdown(boolean force)
IPDISession
shutdown in interface IPDISessionforce - whether force to terminate debugger
public void start(TaskSet tasks)
throws PDIException
IPDIExecuteManagement
start in interface IPDIExecuteManagementtasks - target process
PDIException - on failure
public void stepInto(TaskSet tasks,
int count)
throws PDIException
IPDIExecuteManagement
stepInto in interface IPDIExecuteManagementtasks - target processcount - as in `step', but do so count times.
PDIException - on failure
public void stepIntoInstruction(TaskSet tasks,
int count)
throws PDIException
IPDIExecuteManagement
stepIntoInstruction in interface IPDIExecuteManagementtasks - target process
PDIException - on failure
public void stepOver(TaskSet tasks,
int count)
throws PDIException
IPDIExecuteManagement
stepOver in interface IPDIExecuteManagementtasks - target processcount - as in `step', but do so count times.
PDIException - on failure
public void stepOverInstruction(TaskSet tasks,
int count)
throws PDIException
IPDIExecuteManagement
stepOverInstruction in interface IPDIExecuteManagementtasks - target processcount - as in `stepOverInstruction', but do so count times.
PDIException - on failure
public void stepReturn(TaskSet tasks,
IAIF aif)
throws PDIException
IPDIExecuteManagementnull, if no return value is needed. Can only be called when
the associated target/thread is suspended.
stepReturn in interface IPDIExecuteManagementtasks - target processaif - value use as the returning value.
PDIException - on failure
public void stepReturn(TaskSet tasks,
int count)
throws PDIException
IPDIExecuteManagement
stepReturn in interface IPDIExecuteManagementtasks - target processcount - as in `step', but do so count times.
PDIException - on failure
public void stepUntil(TaskSet tasks,
IPDILocation location)
throws PDIException
IPDIExecuteManagement
stepUntil in interface IPDIExecuteManagementtasks - target processlocation - location
PDIException - on failure
public void suspend(TaskSet tasks)
throws PDIException
IPDIExecuteManagement
suspend in interface IPDIExecuteManagementtasks - target process
PDIException - on failure
public void terminate(TaskSet tasks)
throws PDIException
IPDIExecuteManagement
terminate in interface IPDIExecuteManagementtasks - target process
PDIException - on failure
public void validateStepReturn(TaskSet tasks)
throws PDIException
IPDISession
validateStepReturn in interface IPDISessionPDIException
protected void checkStatus()
throws PDIException
PDIException
|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||