[0/3] Option to show stopped threads only

Message ID cover.1680686220.git.tankut.baris.aktemur@intel.com
Headers
Series Option to show stopped threads only |

Message

Tankut Baris Aktemur April 5, 2023, 9:19 a.m. UTC
  Hi,

This is a short series that adds a "-stopped" option to the "info threads"
to show stopped threads only.

Regards
Baris


Tankut Baris Aktemur (3):
  gdb: pass info_threads_opts to print_thread_info_1
  gdb, doc: add the missing '-gid' option to 'info threads'
  gdb: add a '-stopped' option to "info threads"

 gdb/NEWS                                      |  7 ++
 gdb/doc/gdb.texinfo                           |  6 +-
 gdb/testsuite/gdb.base/options.exp            | 11 ++-
 .../gdb.threads/info-threads-stopped.c        | 78 +++++++++++++++++++
 .../gdb.threads/info-threads-stopped.exp      | 75 ++++++++++++++++++
 gdb/thread.c                                  | 76 +++++++++++-------
 6 files changed, 221 insertions(+), 32 deletions(-)
 create mode 100644 gdb/testsuite/gdb.threads/info-threads-stopped.c
 create mode 100644 gdb/testsuite/gdb.threads/info-threads-stopped.exp