-thread-info
Command-thread-info
No equivalent.
N.A.
-thread-list-all-threads
Command-thread-list-all-threads
The equivalent GDB command is info threads.
N.A.
-thread-list-ids
Command-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.
Part of info threads supplies the same information.
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)
-thread-select
Command-thread-select threadnum
Make threadnum the current thread. It prints the number of the new current thread, and the topmost frame for that thread.
The corresponding GDB command is thread.
(gdb) -exec-next ^running (gdb) *stopped,reason="end-stepping-range",thread-id="2",line="187", file="../../../devo/gdb/testsuite/gdb.threads/linux-dp.c" (gdb) -thread-list-ids ^done, thread-ids={thread-id="3",thread-id="2",thread-id="1"}, number-of-threads="3" (gdb) -thread-select 3 ^done,new-thread-id="3", frame={level="0 ",func="vprintf", args=[{name="format",value="0x8048e9c \"%*s%c %d %c\\n\""}, {name="arg",value="0x2"}],file="vprintf.c",line="31"} (gdb)