Add "maint info linux-lwps" command
authorAndrew Burgess <aburgess@redhat.com>
Tue, 4 Apr 2023 13:50:35 +0000 (14:50 +0100)
committerPedro Alves <pedro@palves.net>
Mon, 13 Nov 2023 14:16:09 +0000 (14:16 +0000)
commit0ae5b8faded5f79d1fa5bfb257262278676d55f9
tree90668c69e4d539188a94f303c4e8969f69aa71d5
parent6b682bbf86f37982ce1d270fb47f363413490bda
Add "maint info linux-lwps" command

This adds a maintenance command that lets you list all the LWPs under
control of the linux-nat target.

For example:

 (gdb) maint info linux-lwps
 LWP Ptid        Thread ID
 560948.561047.0 None
 560948.560948.0 1.1

This shows that "560948.561047.0" LWP doesn't map to any thread_info
object, which is bogus.  We'll be using this in a testcase in a
following patch.

Co-Authored-By: Pedro Alves <pedro@palves.net>
Change-Id: Ic4e9e123385976e5cd054391990124b7a20fb3f5
gdb/NEWS
gdb/doc/gdb.texinfo
gdb/linux-nat.c