public interface IPDISession extends IPDISessionObject, IPDIExecuteManagement
Modifier and Type | Field and Description |
---|---|
static int |
CONNECTED |
static int |
CONNECTING |
static int |
DISCONNECTED |
static int |
EXITED |
static int |
EXITING |
static int |
STARTED |
Modifier and Type | Method and Description |
---|---|
void |
connectToDebugger(IProgressMonitor monitor,
String app,
String path,
String dir,
String[] args)
Connect to the debugger
|
void |
exit()
Causes this session to exit
|
IPDITarget |
findTarget(TaskSet task)
Returns debug target on given task id or null if target is not registered
|
IPDIBreakpointManager |
getBreakpointManager()
Returns the breakpoint manager for this session
|
IPDIDebugger |
getDebugger()
Returns a debugger for this session
|
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
|
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
|
IPDISignalManager |
getSignalManager()
Returns the signal manager for this session
|
IPDISourceManager |
getSourceManager()
Get the source manager
|
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()
Get the debugger timeout
|
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)
Process the running event for the given tasks
|
void |
processSupsendedEvent(TaskSet tasks,
int thread_id,
String[] vars)
Process the suspended event for the given tasks
|
void |
queueRunnable(Runnable runnable) |
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 |
validateStepReturn(TaskSet tasks)
Checks whether request tasks can do step return
|
getSession
restart, resume, resume, resume, start, stepInto, stepIntoInstruction, stepOver, stepOverInstruction, stepReturn, stepReturn, stepUntil, suspend, terminate
static final int DISCONNECTED
static final int CONNECTING
static final int CONNECTED
static final int STARTED
static final int EXITING
static final int EXITED
void processRunningEvent(TaskSet tasks)
tasks
- IPDISourceManager getSourceManager()
void processSupsendedEvent(TaskSet tasks, int thread_id, String[] vars)
tasks
- thread_id
- vars
- void connectToDebugger(IProgressMonitor monitor, String app, String path, String dir, String[] args) throws PDIException
monitor
- app
- path
- dir
- args
- PDIException
- on failurevoid exit() throws PDIException
PDIException
- on failureIPDITarget findTarget(TaskSet task) throws PDIException
tid
- task idPDIException
- on failureIPDIBreakpointManager getBreakpointManager()
IPDIDebugger getDebugger()
IPDIEventFactory getEventFactory()
IPDIEventManager getEventManager()
IPDIEventRequestManager getEventRequestManager()
IPDIExpressionManager getExpressionManager()
String getJobID()
IPDIMemoryManager getMemoryManager()
IPDIModelFactory getModelFactory()
IPDIRegisterManager getRegisterManager()
IPDIRequestFactory getRequestFactory()
IPDISignalManager getSignalManager()
int getStatus()
IPDITargetManager getTargetManager()
IPDITaskManager getTaskManager()
TaskSet getTasks()
IPDIThreadManager getThreadManager()
long getTimeout()
int getTotalTasks()
IPDIVariableManager getVariableManager()
boolean isSuspended(TaskSet tasks)
tasks
- target processboolean isTerminated(TaskSet tasks)
tasks
- target processvoid queueRunnable(Runnable runnable)
runnable
- void setRequestTimeout(long timeout)
void setStatus(int status)
status
- status of current sessionvoid shutdown(boolean force)
force
- whether force to terminate debuggervoid validateStepReturn(TaskSet tasks) throws PDIException
tasks
- PDIException
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.