Subroutine Purpose Retrieves register and stack information for threads.
Parameters thread The pointer to the thread.
On input it identifies the target thread of the operation, or 0 to operate on the first entry in the list of threads. On output it identifies the next entry in the list of threads, or 0 if the end of the list has been reached. These values can be bitwise or'ed together to specify more than one type of query. The location of the buffer to hold the register save data from the kernel if the thread is in a system call. On input, it identifies the maximum size of the buffer in bytes.