]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: update "info threads" output when no threads match the arguments
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 12 May 2025 07:10:55 +0000 (09:10 +0200)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 12 May 2025 07:11:19 +0000 (09:11 +0200)
commit0ea1e5df96b15f3652ca6a9182c428101271caa5
tree861d52b1b6b572356247f88086c114a34734a6a6
parent32c39bab07b6cfcf42c899e65c39b7a9a9d2d9fe
gdb: update "info threads" output when no threads match the arguments

If "info threads" is provided with the thread ID argument but no such
threads matching the thread ID(s) are found, GDB prints

  No threads match '<ID...>'.

Update this output to the more generalized

  No threads matched.

The intention is that the next patch, and potentially future ones,
will extend the command with more filter/match arguments.  We cannot
customize the output to each such argument.  Hence, be more generic.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Approved-by: Pedro Alves <pedro@palves.net
gdb/NEWS
gdb/testsuite/gdb.multi/tids.exp
gdb/testsuite/gdb.threads/current-lwp-dead.exp
gdb/testsuite/gdb.threads/thread-bp-deleted.exp
gdb/thread.c