From patchwork Tue Apr 16 14:48:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Zaretskii X-Patchwork-Id: 88549 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 11DE9384AB48 for ; Tue, 16 Apr 2024 14:48:35 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 6B38A3858CDB for ; Tue, 16 Apr 2024 14:48:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6B38A3858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6B38A3858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713278888; cv=none; b=AxwsK52kE0VjsgCxzysOrXq26ZqFiuZh2Ia426M4PrXX6WIO7E4LUUO9ExBKRfaq2qHWZUEu+kMiARbaTxttCTbFsCF1QUOg3/2XxOltatCV3JVjHVgZ6yS5zkNKnB4m3T/vw4I9wLtsGoJGY3JHEKPyEgZNiFR8Uzj4EWVGBos= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713278888; c=relaxed/simple; bh=c1CvVjJpg7FuHSrXquRfs46esQOdlmYfxJHHN+/YUQg=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=lKVEsVYWqHhiKDqtMHd0/Vp0LMqTiVcTvpUooVvJmeQb/erEqjQXqjuYIYzPw+Vtx1m8xaDQeARz6FPeXT9Ls/YvmrxO4QrXeXmDYXSzLvOFjVuJ27D0lgQq6DT20AwwlyGNpq4ED3rc/msDPSw/GxHP3m6cMdwn5b+XJXv2suw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwk6P-00031W-Bd for gdb-patches@sourceware.org; Tue, 16 Apr 2024 10:48:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Subject:To:From:Date:mime-version:in-reply-to: references; bh=/vFoqCwGEd2ZmRBo86jT/qhUik8lPRNH2rNbHwpC0Ao=; b=P4905Q+hK4i5BH 1LCgAksZLGvmu/+TgopC2SYngjSvLiaxt7TKN6xnTP1H2wD6j3F4K2B1MyhQmqv1RjRExx7wI7x2C i0oh1ChVcHHL8m4/fAipkl3jYRAjbV2OK47uQu9Nx6kezQQcrIO9kV5UHLpJJAlXu1FqkrUZZ+gkY GKhiWVnstSC7lOqLLsgnvJYoD9KtZgFZvF9CbqMKpTJXyp50BT3VvbY1hJPLlWOEcZB1YwKYA+Qw2 WCDLC+/864g/mwf+t9BVAsebD56+id3F7WahQD8+5DobNU/1JZodq0WY/2qtP7zw76DFcUr7R5+Bk 1jjMOq3buHP3ehkopgrg==; Date: Tue, 16 Apr 2024 17:48:03 +0300 Message-Id: <86wmoxict8.fsf@gnu.org> From: Eli Zaretskii To: gdb-patches@sourceware.org Subject: [PATCH] Fix whitespace in "help set inferior-tty" X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Hi, I've noticed that doc strings of "set inferior-tty" and "set cwd" have some excess whitespace, which makes them display with unexpected indentation, at least in a Windows command prompt window. The patch below fixes that. OK to install? gdb/infcmd.c (_initialize_infcmd): Remove excess whitespace. --- gdb/infcmd.c~ 2023-12-03 07:23:54.000000000 +0200 +++ gdb/infcmd.c 2024-04-16 17:39:29.132164800 +0300 @@ -3139,10 +3139,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, @@ -3163,8 +3163,8 @@ Follow this command with any number of a 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."),