This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] thread apply help
- From: Andrew STUBBS <andrew dot stubbs at st dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 09 Nov 2005 18:05:36 +0000
- Subject: [PATCH] thread apply help
Hi,
This patch might qualify as obvious, but I'm not sure what the rules are
on who's allowed to do that, so here it is.
Currently GDB reports the following:
(gdb) help thread apply
Apply a command to a list of threads.
List of apply subcommands:
apply all -- Apply a command to all threads
Type "help apply" followed by apply subcommand name for full
documentation.
Command name abbreviations are allowed if unambiguous.
The word 'thread' is missing in four places. It should read as follows:
(gdb) help thread apply
Apply a command to a list of threads.
List of thread apply subcommands:
thread apply all -- Apply a command to all threads
Type "help thread apply" followed by thread apply subcommand name for
full documentation.
Command name abbreviations are allowed if unambiguous.
OK?
Andrew Stubbs
2005-11-09 Andrew Stubbs <andrew.stubbs@st.com>
* thread.c (_initialize_thread): Correct the 'thread apply' help
message.
Index: src/gdb/thread.c
===================================================================
--- src.orig/gdb/thread.c 2005-02-15 15:49:22.000000000 +0000
+++ src/gdb/thread.c 2005-11-02 16:01:51.000000000 +0000
@@ -691,7 +691,7 @@ The new thread ID must be currently know
add_prefix_cmd ("apply", class_run, thread_apply_command,
_("Apply a command to a list of threads."),
- &thread_apply_list, "apply ", 1, &thread_cmd_list);
+ &thread_apply_list, "thread apply ", 1, &thread_cmd_list);
add_cmd ("all", class_run, thread_apply_all_command,
_("Apply a command to all threads."), &thread_apply_list);