From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1086) id 6827E3858D35; Tue, 16 Apr 2024 16:15:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6827E3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713284121; bh=EoE/Pv3JS7mRvP2AYPhQIswtHbki1br+NW14m2/pVe4=; h=From:To:Subject:Date:From; b=NTLauKadSwaY+LWKbOG6kCsVkQdb9Ak7/xrp6x6/yl9HXNk5S5oBPAHu0GAI7oFMR CVE9VUJ073v+KF8IUhnYdaQ5DQKqvHX0ZF7UpW+ZBHh1oi+G/0U33GOGkZoUoJyL5c +1Pg21K7BOTBPw2BlXu4PRFuOBFQYVmLPcN2+urE= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Eli Zaretskii To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Remove excess whitespace from doc strings of some commands X-Act-Checkin: binutils-gdb X-Git-Author: Eli Zaretskii X-Git-Refname: refs/heads/master X-Git-Oldrev: 3f6a060c7543332d0cb4377fc318e2db01ea1d3c X-Git-Newrev: 6a2dbb742dc5aa18bc7995f7af55fb6e74c3ae4a Message-Id: <20240416161521.6827E3858D35@sourceware.org> Date: Tue, 16 Apr 2024 16:15:21 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D6a2dbb742dc5= aa18bc7995f7af55fb6e74c3ae4a commit 6a2dbb742dc5aa18bc7995f7af55fb6e74c3ae4a Author: Eli Zaretskii Date: Tue Apr 16 19:13:39 2024 +0300 Remove excess whitespace from doc strings of some commands =20 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. =20 * 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. Diff: --- gdb/infcmd.c | 12 ++++++------ gdb/linux-nat.c | 4 ++-- gdb/riscv-tdep.c | 2 +- gdb/top.c | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 600c90c055a..10a964a90d7 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -3093,10 +3093,10 @@ _initialize_infcmd () /* Add the filename of the terminal connected to inferior I/O. */ auto tty_set_show =3D 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 pa= ssed to the program."), =20 auto cwd_set_show =3D 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 start= ed."), diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 2602e1f240d..42051f218b3 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -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, diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c index f86a37988cb..fe4da1a1f9d 100644 --- a/gdb/riscv-tdep.c +++ b/gdb/riscv-tdep.c @@ -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\ diff --git a/gdb/top.c b/gdb/top.c index 6e9df41c4f3..d01a0c206cc 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -2267,7 +2267,7 @@ input settings."), =20 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\