threads

The dbx threads service allows you to get information on the kernel threads in the process.

You can do either of the following:

If the plug-in passes a non-NULL infop buffer, dbx populates the buffer with the number of entries requested in *countp, starting with the thread referenced by *indexp.

If the plug-in passes a *countp that is greater than the number of remaining entries, dbx retrieves all remaining entries. dbx updates countp to reflect the actual number of entries retrieved and indexp to reflect the thread handle for the next request.

If the last entry was retrieved, indexp is set to -1. If the plug-in passes a NULL infop buffer, indexp and countp are still updated — just as if infop were non-NULL.

If the first thread is requested and countp is updated to zero, the process is not threaded.

typedef int (*dbx_plugin_threads_service_t)(dbx_plugin_session_t session,
                                        dbx_plugin_thrdinfo_t *infop, 
                                        size_t thrdinfo_size,
                                        tid64_t *indexp,
                                        unsigned int *countp)
The following table displays the dbx threads service parameters:
Parameter Description
session Session identifier
infop Allocated array of dbx_plugin_thrdinfo_t structures or NULL
thrdinfo_size Size of a single dbx_plugin_thrdinfo_t structure
indexp Starting/next thread id (where, on input, zero corresponds to the first thread)
countp Number of threads
The following list contains the dbx pthreads service return codes: