]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove excess whitespace from doc strings of some commands
authorEli Zaretskii <eliz@gnu.org>
Tue, 16 Apr 2024 16:13:39 +0000 (19:13 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 16 Apr 2024 16:13:39 +0000 (19:13 +0300)
I've noticed that doc strings of some commands, like "set cwd"
and  "set inferior-tty", have some excess whitespace, which
makes them display with unexpected indentation, at least in a
Windows command prompt window.  This patch fixes that.

* gdb/linux-nat.c (_initialize_linux_nat):
* gdb/riscv-tdep.c (riscv_insn):
* gdb/top.c (quit_force):
* gdb/infcmd.c (_initialize_infcmd): Remove excess whitespace.

gdb/infcmd.c
gdb/linux-nat.c
gdb/riscv-tdep.c
gdb/top.c

index 600c90c055a5ab6cf13f3b7990f67411aaf54227..10a964a90d739ac2a049b512fb7345506853994c 100644 (file)
@@ -3093,10 +3093,10 @@ _initialize_infcmd ()
   /* Add the filename of the terminal connected to inferior I/O.  */
   auto tty_set_show
     = add_setshow_optional_filename_cmd ("inferior-tty", class_run, _("\
-Set terminal for future runs of program being debugged."), _("         \
-Show terminal for future runs of program being debugged."), _("                \
-Usage: set inferior-tty [TTY]\n\n                                      \
-If TTY is omitted, the default behavior of using the same terminal as GDB\n \
+Set terminal for future runs of program being debugged."), _("\
+Show terminal for future runs of program being debugged."), _("\
+Usage: set inferior-tty [TTY]\n\n\
+If TTY is omitted, the default behavior of using the same terminal as GDB\n\
 is restored."),
                                         set_tty_value,
                                         get_tty_value,
@@ -3117,8 +3117,8 @@ Follow this command with any number of args, to be passed to the program."),
 
   auto cwd_set_show
     = add_setshow_string_noescape_cmd ("cwd", class_run, _("\
-Set the current working directory to be used when the inferior is started.\n \
-Changing this setting does not have any effect on inferiors that are\n \
+Set the current working directory to be used when the inferior is started.\n\
+Changing this setting does not have any effect on inferiors that are\n\
 already running."),
                                       _("\
 Show the current working directory that is used when the inferior is started."),
index 2602e1f240d0056b0e199a952d86bbaf96e6d2f3..42051f218b30e2cef1ff864da79dc0695618d42e 100644 (file)
@@ -4701,8 +4701,8 @@ _initialize_linux_nat ()
 {
   add_setshow_boolean_cmd ("linux-nat", class_maintenance,
                           &debug_linux_nat, _("\
-Set debugging of GNU/Linux native target."), _("       \
-Show debugging of GNU/Linux native target."), _("      \
+Set debugging of GNU/Linux native target."), _("\
+Show debugging of GNU/Linux native target."), _("\
 When on, print debug messages relating to the GNU/Linux native target."),
                           nullptr,
                           show_debug_linux_nat,
index f86a37988cbd1180b1789ac95d39e05d715f8f09..fe4da1a1f9d1e17581f314e758d2b7b29fb53b23 100644 (file)
@@ -4821,7 +4821,7 @@ initialisation process."),
   add_setshow_auto_boolean_cmd ("use-compressed-breakpoints", no_class,
                                &use_compressed_breakpoints,
                                _("\
-Set debugger's use of compressed breakpoints."), _("   \
+Set debugger's use of compressed breakpoints."), _("\
 Show debugger's use of compressed breakpoints."), _("\
 Debugging compressed code requires compressed breakpoints to be used. If\n\
 left to 'auto' then gdb will use them if the existing instruction is a\n\
index 6e9df41c4f3c84027699d37e86820a3820bec39e..d01a0c206cc99e5020184e5a78fce55d0dc860ff 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -2267,7 +2267,7 @@ input settings."),
 
   add_setshow_boolean_cmd ("startup-quietly", class_support,
                               &startup_quiet, _("\
-Set whether GDB should start up quietly."), _("                \
+Set whether GDB should start up quietly."), _("\
 Show whether GDB should start up quietly."), _("\
 This setting will not affect the current session.  Instead this command\n\
 should be added to the .gdbearlyinit file in the users home directory to\n\