Next: Stack Buffer, Previous: Breakpoints Buffer, Up: GDB Graphical Interface
The GDB Threads buffer displays a summary of the threads in the
debugged program. See Threads. To select a thread, move
point there and press <RET> (gdb-select-thread
), or click on
it with Mouse-2. This also displays the associated source
buffer, and updates the contents of the other GDB buffers.
You can customize variables under gdb-buffers
group to select
fields included in GDB Threads buffer.
gdb-thread-buffer-verbose-names
gdb-thread-buffer-arguments
gdb-thread-buffer-locations
gdb-thread-buffer-addresses
To view information for several threads simultaneously, use the following commands from the GDB Threads buffer.
gdb-display-disassembly-for-thread
).
gdb-display-stack-for-thread
).
gdb-display-locals-for-thread
).
gdb-display-registers-for-thread
).
Their upper-case counterparts, D, F ,L and R, display the corresponding buffer in a new frame.
When you create a buffer showing information about some specific thread, it becomes bound to that thread and keeps showing actual information while you debug your program. The mode indicator for each GDB buffer shows the number of thread it is showing information about. The thread number is also included in the buffer name of bound buffers.
Further commands are available in the GDB Threads buffer which depend on the mode of GDB that is used for controlling execution of your program. See Multithreaded Debugging.