From patchwork Mon Apr 30 14:37:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 27045 Received: (qmail 91466 invoked by alias); 30 Apr 2018 14:37:39 -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 91146 invoked by uid 89); 30 Apr 2018 14:37:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=WIDTH X-HELO: gateway32.websitewelcome.com Received: from gateway32.websitewelcome.com (HELO gateway32.websitewelcome.com) (192.185.144.98) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 Apr 2018 14:37:36 +0000 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway32.websitewelcome.com (Postfix) with ESMTP id B4FB2837613 for ; Mon, 30 Apr 2018 09:37:34 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id D9vqfji1lbXuJD9vqf5Qrh; Mon, 30 Apr 2018 09:37:34 -0500 X-Authority-Reason: nr=8 Received: from 97-122-176-117.hlrn.qwest.net ([97.122.176.117]:38242 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1fD9vq-003hNM-Dh; Mon, 30 Apr 2018 09:37:34 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 04/12] Update memattr.c help strings Date: Mon, 30 Apr 2018 08:37:23 -0600 Message-Id: <20180430143731.30007-5-tom@tromey.com> In-Reply-To: <20180430143731.30007-1-tom@tromey.com> References: <20180430143731.30007-1-tom@tromey.com> X-BWhitelist: no X-Source-L: No X-Exim-ID: 1fD9vq-003hNM-Dh X-Source-Sender: 97-122-176-117.hlrn.qwest.net (bapiya.Home) [97.122.176.117]:38242 X-Source-Auth: tom+tromey.com X-Email-Count: 12 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes This changes memattr.c to use the GNU style for help strings. 2018-04-29 Tom Tromey * memattr.c (_initialize_mem): Update help string. --- gdb/ChangeLog | 4 ++++ gdb/memattr.c | 14 +++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/gdb/memattr.c b/gdb/memattr.c index 8dad38b039..328a63a19d 100644 --- a/gdb/memattr.c +++ b/gdb/memattr.c @@ -603,27 +603,27 @@ _initialize_mem (void) Define attributes for memory region or reset memory region handling to\n\ target-based.\n\ Usage: mem auto\n\ - mem [ ],\n\ -where may be rw (read/write), ro (read-only) or wo (write-only),\n\ - may be 8, 16, 32, or 64, and\n\ - may be cache or nocache")); + mem LOW HIGH [MODE WIDTH CACHE],\n\ +where MODE may be rw (read/write), ro (read-only) or wo (write-only),\n\ + WIDTH may be 8, 16, 32, or 64, and\n\ + CACHE may be cache or nocache")); add_cmd ("mem", class_vars, enable_mem_command, _("\ Enable memory region.\n\ Arguments are the code numbers of the memory regions to enable.\n\ -Usage: enable mem ...\n\ +Usage: enable mem [CODE]...\n\ Do \"info mem\" to see current list of code numbers."), &enablelist); add_cmd ("mem", class_vars, disable_mem_command, _("\ Disable memory region.\n\ Arguments are the code numbers of the memory regions to disable.\n\ -Usage: disable mem ...\n\ +Usage: disable mem [CODE]...\n\ Do \"info mem\" to see current list of code numbers."), &disablelist); add_cmd ("mem", class_vars, delete_mem_command, _("\ Delete memory region.\n\ Arguments are the code numbers of the memory regions to delete.\n\ -Usage: delete mem ...\n\ +Usage: delete mem [CODE]...\n\ Do \"info mem\" to see current list of code numbers."), &deletelist); add_info ("mem", info_mem_command,