At 04:45 PM 7/7/99 -0700, Amit Kumar wrote:
>hi paul,
>
>well threads are really so firmly engrained, that they will have to be
>incorporated into the design, if not in the initial command set.
>however, if you could (in collaboration with jde users?) supply me with
>a command set, i can figure out if i'm doing something awful in the
>design. how's that sound? it needn't be as detailed as the first phase
>we thrashed out, but a wholesome command set will be good to have.
>
>amit
Hi Amit and other JDE users,
Below are some thread-related commands that I think might be useful.
The JDE would use these commands to implement the thread-related part
of the debugger interface.
As always, your comments/suggestions are welcome.
- Paul
---------------------------------------------------------------------
VM_ID CMD_ID get_threads
Returns all the threads defined for VM_ID (i.e., the debuggee process
running in the vm specified by VM_ID). Threads are returned sorted
by group. For each thread, returns the status (active/suspended)
and current location (class/method/line_no) of the thread.
----------------------------------------------------------------------
VM_ID CMD_ID get_thread_groups
Returns all the thread groups defined for VM_ID
-----------------------------------------------------------------------
VM_ID CMD_ID get_stack_on_thread THREAD_ID
Returns the stack of the method in which the thread specified by
THREAD_ID is currently located. Once the JDE has this stack, it
should be able to use jdebug's stack navigation commands (up/down)
to explore the call stack of the specified thread.
-----------------------------------------------------------------------
VM_ID CMD_ID set_breakpoint_on_thread CLASS LINE_NO THREAD_ID
Sets a breakpoint at LINE_NO in CLASS that activates only if the thread
specified by THREAD_ID is active in the process specified by VM_ID.
-----------------------------------------------------------------------
VM_ID CMD_ID set_method_breakpoint_on_thread CLASS METHOD THREAD_ID
Sets a breakpoint at the beginning of METHOD that activates only if the
thread specified by THREAD_ID is active in the process specified by
VM_ID.
-----------------------------------------------------------------------
VM_ID CMD_ID set_single_thread_mode [on | off]
Sets single-thread mode on or off for the debuggee process defined by
VM_ID. In this mode, step and stack navigation commands apply only to
the current thread, for example, step commands advance the debuggee process
only along the current thread.