Ensure class_tui is listed in the output of "help" giving the list of classes.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 23 May 2020 13:11:52 +0000 (15:11 +0200)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 26 May 2020 20:18:42 +0000 (22:18 +0200)
Before this change, "help" was not showing the TUI class.
With this change:
  (gdb) help
  ...
  support -- Support facilities.
  text-user-interface -- TUI is the GDB text based interface.
  tracepoints -- Tracing of program execution without stopping the program.
  ...
  (gdb) help text-user-interface
  TUI is the GDB text based interface.
  In TUI mode, GDB can display several text windows showing
  the source file, the processor registers, the program disassembly, ...

  List of commands:

  + -- Scroll window forward.
  ...

Note that we cannot use "tui" for the fake class command name, as "tui"
is a command.

gdb/ChangeLog

2020-05-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>

* command.h: Add comment giving the name of class_tui.
* cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
create the fake command for the help for class_tui.

gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/command.h

index 9e792fee1eb2431af7a587e28d40136f5e85ebc3..b0ec14fd4f98ef9384bb816486289b3c9938ceee 100644 (file)
@@ -1,3 +1,9 @@
+2020-05-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * command.h: Add comment giving the name of class_tui.
+       * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
+       create the fake command for the help for class_tui.
+
 2020-05-26  Tom Tromey  <tromey@adacore.com>
 
        * ada-lang.c (ada_print_array_index): Change type.  Call val_atr.
 2020-05-26  Tom Tromey  <tromey@adacore.com>
 
        * ada-lang.c (ada_print_array_index): Change type.  Call val_atr.
index eb6e32b04693cb4ec65e5b97af4a4539bfd92e12..fdc8758bcd09fbdb2b86771e5c891b0fb58f1715 100644 (file)
@@ -2150,6 +2150,12 @@ Variable lookups are done with respect to the selected frame.\n\
 When the program being debugged stops, gdb selects the innermost frame.\n\
 The commands below can be used to select other frames by number or address."),
           &cmdlist);
 When the program being debugged stops, gdb selects the innermost frame.\n\
 The commands below can be used to select other frames by number or address."),
           &cmdlist);
+#ifdef TUI
+  add_cmd ("text-user-interface", class_tui,
+          _("TUI is the GDB text based interface.\n\
+In TUI mode, GDB can display several text windows showing\n\
+the source file, the processor registers, the program disassembly, ..."), &cmdlist);
+#endif
   add_cmd ("running", class_run, _("Running the program."), &cmdlist);
 
   /* Define general commands.  */
   add_cmd ("running", class_run, _("Running the program."), &cmdlist);
 
   /* Define general commands.  */
index 04a380cba4aa65f7871069e84e7f30997d02d663..32b5b35b0c51275a0a9a211bd494d4bfd446db85 100644 (file)
@@ -64,7 +64,7 @@ enum command_class
   class_bookmark,
   class_obscure,     /* obscure */
   class_maintenance, /* internals */
   class_bookmark,
   class_obscure,     /* obscure */
   class_maintenance, /* internals */
-  class_tui,
+  class_tui,         /* text-user-interface */
   class_user,        /* user-defined */
 
   /* Used for "show" commands that have no corresponding "set" command.  */
   class_user,        /* user-defined */
 
   /* Used for "show" commands that have no corresponding "set" command.  */
This page took 0.030781 seconds and 4 git commands to generate.