Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)
21.12 GDB/MI thread commands
The -thread-info command
Synopsis
-thread-info
GDB command
No equivalent.
Example
N.A.
The -thread-list-all-threads command
Synopsis
-thread-list-all-threads
GDB command
The equivalent GDB command is 'info threads'.
Example
N.A.
The -thread-list-ids command
Synopsis
-thread-list-ids
Produces a list of the currently known GDB thread ids. At the end of the list it also prints the total
number of such threads.
GDB command
Part of 'info threads' supplies the same information.
Example
No threads present, besides the main process:
(gdb)
-thread-list-ids
^done,thread-ids={},number-of-threads="0"
(gdb)
Several threads:
(gdb)
-thread-list-ids
^done,thread-ids={thread-id="3",thread-id="2",thread-id="1"},
number-of-threads="3"
(gdb)
21.12 GDB/MI thread commands 281