From patchwork Mon Apr 18 15:48:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 11789 Received: (qmail 58289 invoked by alias); 18 Apr 2016 15:48:20 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 58251 invoked by uid 89); 18 Apr 2016 15:48:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=H*M:sk:94eb2c1, H*MI:sk:94eb2c1, cleans, Hx-languages-length:2941 X-HELO: mail-pa0-f74.google.com Received: from mail-pa0-f74.google.com (HELO mail-pa0-f74.google.com) (209.85.220.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 18 Apr 2016 15:48:17 +0000 Received: by mail-pa0-f74.google.com with SMTP id zy2so7287803pac.0 for ; Mon, 18 Apr 2016 08:48:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:message-id:date:subject:from:to; bh=DrSMKRUy9TCyYMAXIxjAFC18A2vLc4OwhSQD1u16OEc=; b=MIi1bdJBW87lBowCI4Zhy8N3kszC23UBYaIQ59weGiq+LxMrBRaZc8XGqH8VIQWYeg rd3j5faTw7AdN693FOnvrf6ECw7s/gQVGvbDSts/xiX2AJltKwQIljvXobiPAu9f6bt+ mLUYpUC5cWotf9XvTi09g71hirqohzIUp36pZwRB3x0VzyMq6LefaQ7xJ1yGLA1QKrq2 BatF8mqjN8+QqaefZnCmf1S2GY+M2iL6XTD4rt4oHFvbmhba/jDeJBhPNKTOplp8tONe vbAk7yYeGnSYFAiStFw5LNzbfWktvC6BJSub5vM9Z7ygKHG9kboRxUnaE1wSNmfdM4RD /KLA== X-Gm-Message-State: AOPr4FVN9TiLtfuJs2Je5b65xgzPTfqMzk0obHUICrL50m9Knr+Hdy/09wLR+DP0++0i4QstxBYZFchX4n3p18i4ru/OWimSaqNQ+e5af5HamIOa57RhDwS/EaEBGWeA8MS4sb1R2tuKtC+QySAQXRZsDxWQXxopyJiLSFCg1ISq1B9LOMNEdQ== MIME-Version: 1.0 X-Received: by 10.98.82.22 with SMTP id g22mr11679173pfb.8.1460994495754; Mon, 18 Apr 2016 08:48:15 -0700 (PDT) Message-ID: <94eb2c11107af072b80530c449c1@google.com> Date: Mon, 18 Apr 2016 15:48:15 +0000 Subject: [PATCH 3/3] deprecate "skip enable/etc.", doc string cleanup From: Doug Evans To: gdb-patches@sourceware.org, eliz@gnu.org X-IsSubscribed: yes This patch cleans up the doc strings of the "display" commands. 2016-04-17 Doug Evans * printcmd.c (_initialize_printcmd): Make doc strings for display enable/disable/delete commands consistent with breakpoint commands. add_com ("printf", class_vars, printf_command, _("\ diff --git a/gdb/printcmd.c b/gdb/printcmd.c index f5c4211..821a276 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -2533,12 +2533,13 @@ with this command or \"print\".")); #endif add_info ("display", display_info, _("\ -Expressions to display when program stops, with code numbers.")); +List expressions to display when program stops, with code numbers.\n\ +All \"display\" expressions are printed, any argument is ignored.")); add_cmd ("undisplay", class_vars, undisplay_command, _("\ -Cancel some expressions to be displayed when program stops.\n\ -Arguments are the code numbers of the expressions to stop displaying.\n\ -No argument means cancel all automatic-display expressions.\n\ +Cancel some expressions to be displayed when program stops.\n" +EDDI_USAGE_DOC_STRING_WITH_ALL ("display", "undisplay", "deleted") +"\n\ \"delete display\" has the same effect as this command.\n\ Do \"info display\" to see current list of code numbers."), &cmdlist); @@ -2553,21 +2554,21 @@ With no argument, display all currently requested auto-display expressions.\n\ Use \"undisplay\" to cancel display requests previously made.")); add_cmd ("display", class_vars, enable_display_command, _("\ -Enable some expressions to be displayed when program stops.\n\ -Arguments are the code numbers of the expressions to resume displaying.\n\ -No argument means enable all automatic-display expressions.\n\ +Enable some expressions to be displayed when program stops.\n" +EDDI_USAGE_DOC_STRING_WITH_ALL ("display", "enable display", "enabled") +"\n\ Do \"info display\" to see current list of code numbers."), &enablelist); add_cmd ("display", class_vars, disable_display_command, _("\ -Disable some expressions to be displayed when program stops.\n\ -Arguments are the code numbers of the expressions to stop displaying.\n\ -No argument means disable all automatic-display expressions.\n\ +Disable some expressions to be displayed when program stops.\n" +EDDI_USAGE_DOC_STRING_WITH_ALL ("display", "disable display", "disabled") +"\n\ Do \"info display\" to see current list of code numbers."), &disablelist); add_cmd ("display", class_vars, undisplay_command, _("\ -Cancel some expressions to be displayed when program stops.\n\ -Arguments are the code numbers of the expressions to stop displaying.\n\ -No argument means cancel all automatic-display expressions.\n\ +Cancel some expressions to be displayed when program stops.\n" +EDDI_USAGE_DOC_STRING_WITH_ALL ("display", "delete display", "deleted") +"\n\ Do \"info display\" to see current list of code numbers."), &deletelist);