From: Tankut Baris Aktemur Date: Mon, 12 May 2025 07:10:55 +0000 (+0200) Subject: gdb: update "info threads" output when no threads match the arguments X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ea1e5df96b15f3652ca6a9182c428101271caa5;p=thirdparty%2Fbinutils-gdb.git 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 ''. 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 Approved-by: Pedro Alves 0} { sleep 1 incr attempt_count -1 diff --git a/gdb/thread.c b/gdb/thread.c index 3375cfcee24..d84d326a8c3 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -1285,8 +1285,7 @@ print_thread_info_1 (struct ui_out *uiout, const char *requested_threads, if (requested_threads == NULL || *requested_threads == '\0') uiout->message (_("No threads.\n")); else - uiout->message (_("No threads match '%s'.\n"), - requested_threads); + uiout->message (_("No threads matched.\n")); return; }