public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Add "usage" text to all TUI command help
@ 2020-03-07 21:10 gdb-buildbot
  2020-03-07 21:10 ` Failures on Fedora-i686, branch master gdb-buildbot
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gdb-buildbot @ 2020-03-07 21:10 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 283be8bfa4c19c60f81abbbb43e41b6ccfdff4a9 ***

commit 283be8bfa4c19c60f81abbbb43e41b6ccfdff4a9
Author:     Tom Tromey <tom@tromey.com>
AuthorDate: Sat Feb 22 11:48:26 2020 -0700
Commit:     Tom Tromey <tom@tromey.com>
CommitDate: Sat Feb 22 12:57:25 2020 -0700

    Add "usage" text to all TUI command help
    
    This adds "usage" text to the help for all all the TUI commands.  In
    some cases the usage is borderline, but I tend to think being complete
    is preferable.
    
    2020-02-22  Tom Tromey  <tom@tromey.com>
    
            * tui/tui-win.c (_initialize_tui_win): Add usage text.
            * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
            * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
            * tui/tui.c (_initialize_tui): Add usage text.
    
    Change-Id: I727f7a7cfc03efa248ef98f30a18be393819e30b

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 059e9cdb19..f45b740cb7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2020-02-22  Tom Tromey  <tom@tromey.com>
+
+	* tui/tui-win.c (_initialize_tui_win): Add usage text.
+	* tui/tui-stack.c (_initialize_tui_stack): Add usage text.
+	* tui/tui-regs.c (_initialize_tui_regs): Add usage text.
+	* tui/tui.c (_initialize_tui): Add usage text.
+
 2020-02-22  Tom Tromey  <tom@tromey.com>
 
 	* tui/tui-win.c (tui_set_focus_command)
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 7858236ddc..d33f0aadef 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -654,6 +654,8 @@ _initialize_tui_regs ()
   tuicmd = tui_get_cmd_list ();
 
   cmd = add_cmd ("reg", class_tui, tui_reg_command, _("\
-TUI command to control the register window."), tuicmd);
+TUI command to control the register window.\n\
+Usage: tui reg NAME\n\
+NAME is the name of the register group to display"), tuicmd);
   set_cmd_completer (cmd, tui_reggroup_completer);
 }
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c
index 7758f2f40d..f1e075a3d2 100644
--- a/gdb/tui/tui-stack.c
+++ b/gdb/tui/tui-stack.c
@@ -376,5 +376,6 @@ _initialize_tui_stack ()
 {
   add_com ("update", class_tui, tui_update_command,
 	   _("Update the source window and locator to "
-	     "display the current execution point."));
+	     "display the current execution point.\n\
+Usage: update"));
 }
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index dad3464ae1..b962e028f8 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -1035,7 +1035,8 @@ Use \"info win\" to see the names of the windows currently being displayed."));
   add_com_alias ("wh", "winheight", class_tui, 0);
   set_cmd_completer (cmd, winheight_completer);
   add_info ("win", tui_all_windows_info,
-	    _("List of all displayed windows."));
+	    _("List of all displayed windows.\n\
+Usage: info win"));
   cmd = add_com ("focus", class_tui, tui_set_focus_command, _("\
 Set focus to named window or next/prev window.\n\
 Usage: focus [WINDOW-NAME | next | prev]\n\
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 77d7c90683..ac435d16d6 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -562,9 +562,11 @@ _initialize_tui ()
   tuicmd = tui_get_cmd_list ();
 
   add_cmd ("enable", class_tui, tui_enable_command,
-	   _("Enable TUI display mode."),
+	   _("Enable TUI display mode.\n\
+Usage: tui enable"),
 	   tuicmd);
   add_cmd ("disable", class_tui, tui_disable_command,
-	   _("Disable TUI display mode."),
+	   _("Disable TUI display mode.\n\
+Usage: tui disable"),
 	   tuicmd);
 }


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

end of thread, other threads:[~2020-03-09  1:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-07 21:10 [binutils-gdb] Add "usage" text to all TUI command help gdb-buildbot
2020-03-07 21:10 ` Failures on Fedora-i686, branch master gdb-buildbot
2020-03-07 21:42 ` Failures on Fedora-x86_64-cc-with-index, " gdb-buildbot
2020-03-07 21:53 ` Failures on Fedora-x86_64-m32, " gdb-buildbot
2020-03-07 22:12 ` Failures on Fedora-x86_64-m64, " gdb-buildbot
2020-03-07 22:36 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " gdb-buildbot
2020-03-07 22:54 ` Failures on Fedora-x86_64-native-extended-gdbserver-m64, " gdb-buildbot
2020-03-08  7:44 ` Failures on Ubuntu-Aarch64-native-extended-gdbserver-m64, " gdb-buildbot
2020-03-09  1:30 ` Failures on Fedora-x86_64-native-gdbserver-m64, " gdb-buildbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).