summaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>2018-04-20 06:23:37 +0200
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>2018-04-20 23:15:18 +0200
commit5c8f23cdab2a7cde2dae6fcd5f9b18d089efecaf (patch)
tree783aabeb26ab312aeb87ed912b7fa1a31868268b /gdb/thread.c
parent4352556b36ab4f1c6f81a0ac3daf4619a419558d (diff)
downloadbinutils-gdb-5c8f23cdab2a7cde2dae6fcd5f9b18d089efecaf.tar.gz
Improve on-line help for thread_apply_command and thread_apply_all_command.
Add a Usage: line for thread_apply_command, in particular to mention the thread ID list. In thread_apply_command and thread_apply_all_command help, use uppercase for arg names, as this style seems to be more standard. 2018-04-20 Philippe Waroquiers <philippe.waroquiers@skynet.be> * thread.c (_initialize_thread): improve on-line help for thread_apply_command and thread_apply_all_command.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index 23aa5ba1177..a09d7e0ba08 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -2028,15 +2028,17 @@ The new thread ID must be currently known."),
&thread_cmd_list, "thread ", 1, &cmdlist);
add_prefix_cmd ("apply", class_run, thread_apply_command,
- _("Apply a command to a list of threads."),
+ _("Apply a command to a list of threads.\n\
+Usage: thread apply ID... COMMAND\n\
+ID is a space-separated list of IDs of threads to apply COMMAND on."),
&thread_apply_list, "thread apply ", 1, &thread_cmd_list);
add_cmd ("all", class_run, thread_apply_all_command,
_("\
Apply a command to all threads.\n\
\n\
-Usage: thread apply all [-ascending] <command>\n\
--ascending: Call <command> for all threads in ascending order.\n\
+Usage: thread apply all [-ascending] COMMAND\n\
+-ascending: Call COMMAND for all threads in ascending order.\n\
The default is descending order.\
"),
&thread_apply_list);