aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2020-10-19 17:23:26 +0200
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2020-10-19 18:01:36 +0200
commit3c6eb4d439a31ec39d8c04f3b99d8a9f0bd607d2 (patch)
treeb2fab74ad79848c9e4e4f8a89f8ea8f2f6664d96
parent267037210c9b58b310ab9946e6ab401f8562647f (diff)
downloadbinutils-3c6eb4d439a31ec39d8c04f3b99d8a9f0bd607d2.zip
binutils-3c6eb4d439a31ec39d8c04f3b99d8a9f0bd607d2.tar.gz
binutils-3c6eb4d439a31ec39d8c04f3b99d8a9f0bd607d2.tar.bz2
gdb/thread: fine-tune 'info threads' help text
The help text of 'info threads' is below: (gdb) help info threads Display currently known threads. Usage: info threads [OPTION]... [ID]... Options: -gid Show global thread IDs.If ID is given, it is a space-separated list of IDs of threads to display. Otherwise, all threads are displayed. (gdb) I think the "If ID is given ..." info should have come right below the the usage line. This patch reorganizes the text so that we get (gdb) help info threads Display currently known threads. Usage: info threads [OPTION]... [ID]... If ID is given, it is a space-separated list of IDs of threads to display. Otherwise, all threads are displayed. Options: -gid Show global thread IDs. (gdb) gdb/ChangeLog: 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> * thread.c (_initialize_thread): Fine-tune the help text of 'info threads'.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/thread.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5bfe185..428ced4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
+ * thread.c (_initialize_thread): Fine-tune the help text of
+ 'info threads'.
+
+2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
+
* frame.c: Remove the unused 'uinteger_option_def' type alias.
2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
diff --git a/gdb/thread.c b/gdb/thread.c
index d499400..d832443 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -2183,11 +2183,11 @@ _initialize_thread ()
= gdb::option::build_help (_("\
Display currently known threads.\n\
Usage: info threads [OPTION]... [ID]...\n\
+If ID is given, it is a space-separated list of IDs of threads to display.\n\
+Otherwise, all threads are displayed.\n\
\n\
Options:\n\
-%OPTIONS%\
-If ID is given, it is a space-separated list of IDs of threads to display.\n\
-Otherwise, all threads are displayed."),
+%OPTIONS%"),
info_threads_opts);
c = add_info ("threads", info_threads_command, info_threads_help.c_str ());