Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] thread apply help
@ 2005-11-09 20:31 Andrew STUBBS
  2005-11-13 19:03 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew STUBBS @ 2005-11-09 20:31 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 860 bytes --]

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

[-- Attachment #2: thread_apply.patch --]
[-- Type: text/plain, Size: 755 bytes --]

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);

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-11-14 22:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-09 20:31 [PATCH] thread apply help Andrew STUBBS
2005-11-13 19:03 ` Daniel Jacobowitz
2005-11-14 22:18   ` Andrew STUBBS
2005-11-15  4:03     ` Daniel Jacobowitz
2005-11-14 22:42       ` Andrew STUBBS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox