From patchwork Fri Jan 6 16:41:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Machado X-Patchwork-Id: 18810 Received: (qmail 113224 invoked by alias); 6 Jan 2017 16:41:46 -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 113207 invoked by uid 89); 6 Jan 2017 16:41:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=2.7.4 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Jan 2017 16:41:35 +0000 Received: from svr-orw-fem-02x.mgc.mentorg.com ([147.34.96.206] helo=SVR-ORW-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1cPXa9-00050u-UR from Luis_Gustavo@mentor.com for gdb-patches@sourceware.org; Fri, 06 Jan 2017 08:41:33 -0800 Received: from Opsys.world.mentorg.com (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.3.224.2; Fri, 6 Jan 2017 08:41:33 -0800 From: Luis Machado To: Subject: [PATCH] Improve load command's help text Date: Fri, 6 Jan 2017 10:41:28 -0600 Message-ID: <1483720888-6467-1-git-send-email-lgustavo@codesourcery.com> MIME-Version: 1.0 X-IsSubscribed: yes This fairly obvious patch adds usage text to the load command's help text. Originally it did not have usage and mentioned things like FILE and OFFSET without explaining how those should be passed in the command. gdb/ChangeLog: 2017-01-05 Luis Machado * symfile (_initialize_symfile): Add usage text to the load command's help text. --- gdb/symfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/symfile.c b/gdb/symfile.c index 61b9e5b..0af1900 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -3952,7 +3952,8 @@ that lies within the boundaries of this symbol file in memory."), c = add_cmd ("load", class_files, load_command, _("\ Dynamically load FILE into the running program, and record its symbols\n\ for access from GDB.\n\ -A load OFFSET may also be given."), &cmdlist); +A load offset may also be given.\n\ +Usage: load [FILE] [offset expression]"), &cmdlist); set_cmd_completer (c, filename_completer); add_prefix_cmd ("overlay", class_support, overlay_command,