From patchwork Mon Dec 24 21:42:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 30832 Received: (qmail 6725 invoked by alias); 24 Dec 2018 21:42:34 -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 6700 invoked by uid 89); 24 Dec 2018 21:42:33 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=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=evaluate, evaluation, translate, agent X-HELO: gateway32.websitewelcome.com Received: from gateway32.websitewelcome.com (HELO gateway32.websitewelcome.com) (192.185.145.113) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Dec 2018 21:42:30 +0000 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway32.websitewelcome.com (Postfix) with ESMTP id AF9D3F5F0A for ; Mon, 24 Dec 2018 15:42:29 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id bXzZg9muA2qH7bXzZgrc6L; Mon, 24 Dec 2018 15:42:29 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version :Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=gr7+2yhppbIcz9m2O9pDIdb4X8WITxR8236uiurXQdE=; b=rGM1p9EajwhgIuldfdDYdT3QPg aSuTLsDBl67kNbXtf3ygB2R/UcqOCPRtFlKP1/bN1bm7MmTfH1yp5F2AlU8+HyC7r7M0IU/zid6Ie mb8CnarYVfV6e0jTEuqQ2N851; Received: from 75-166-72-210.hlrn.qwest.net ([75.166.72.210]:38374 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gbXzZ-002xY2-Fm; Mon, 24 Dec 2018 15:42:29 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Use upper case for more metasyntactic variables in gdb Date: Mon, 24 Dec 2018 14:42:25 -0700 Message-Id: <20181224214225.14262-1-tom@tromey.com> I noticed a few places where a Usage line in gdb did not use upper case for metasyntactic variables. This patch fixes all the instances I found. Tested on x86-64 Fedora 28. gdb/ChangeLog 2018-12-24 Tom Tromey * compile/compile.c (_initialize_compile): Use upper case for metasyntactic variables. * symmisc.c (_initialize_symmisc): Use upper case for metasyntactic variables. * psymtab.c (_initialize_psymtab): Use upper case for metasyntactic variables. * demangle.c (demangle_command): Use upper case for metasyntactic variables. (_initialize_demangler): Likewise. * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic variables. --- gdb/ChangeLog | 14 ++++++++++++++ gdb/ax-gdb.c | 4 ++-- gdb/compile/compile.c | 2 +- gdb/demangle.c | 4 ++-- gdb/psymtab.c | 4 ++-- gdb/symmisc.c | 6 +++--- 6 files changed, 24 insertions(+), 10 deletions(-) diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c index ef053f75c6..d048ba4407 100644 --- a/gdb/ax-gdb.c +++ b/gdb/ax-gdb.c @@ -2751,7 +2751,7 @@ _initialize_ax_gdb (void) add_cmd ("agent", class_maintenance, agent_command, _("\ Translate an expression into remote agent bytecode for tracing.\n\ -Usage: maint agent [-at location,] EXPRESSION\n\ +Usage: maint agent [-at LOCATION,] EXPRESSION\n\ If -at is given, generate remote agent bytecode for this location.\n\ If not, generate remote agent bytecode for current frame pc address."), &maintenancelist); @@ -2759,7 +2759,7 @@ If not, generate remote agent bytecode for current frame pc address."), add_cmd ("agent-eval", class_maintenance, agent_eval_command, _("\ Translate an expression into remote agent bytecode for evaluation.\n\ -Usage: maint agent-eval [-at location,] EXPRESSION\n\ +Usage: maint agent-eval [-at LOCATION,] EXPRESSION\n\ If -at is given, generate remote agent bytecode for this location.\n\ If not, generate remote agent bytecode for current frame pc address."), &maintenancelist); diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c index f6f49e0833..7c07a0ed71 100644 --- a/gdb/compile/compile.c +++ b/gdb/compile/compile.c @@ -941,7 +941,7 @@ indicate the end of the expression."), _("\ Evaluate a file containing source code.\n\ \n\ -Usage: compile file [-r|-raw] [filename]\n\ +Usage: compile file [-r|-raw] [FILENAME]\n\ -r|-raw: Suppress automatic 'void _gdb_expr () { CODE }' wrapping."), &compile_command_list); set_cmd_completer (c, filename_completer); diff --git a/gdb/demangle.c b/gdb/demangle.c index 8b341ee67b..c0bd57e8bc 100644 --- a/gdb/demangle.c +++ b/gdb/demangle.c @@ -188,7 +188,7 @@ demangle_command (const char *args, int from_tty) name = arg_start; if (*name == '\0') - error (_("Usage: demangle [-l language] [--] name")); + error (_("Usage: demangle [-l LANGUAGE] [--] NAME")); if (!lang_name.empty ()) { @@ -262,7 +262,7 @@ Use `set demangle-style' without arguments for a list of demangling styles."), add_cmd ("demangle", class_support, demangle_command, _("\ Demangle a mangled name.\n\ -Usage: demangle [-l language] [--] name\n\ +Usage: demangle [-l LANGUAGE] [--] NAME\n\ If LANGUAGE is not specified, NAME is demangled in the current language."), &cmdlist); } diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 6d76e8d489..7539de3278 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -2236,8 +2236,8 @@ _initialize_psymtab (void) { add_cmd ("psymbols", class_maintenance, maintenance_print_psymbols, _("\ Print dump of current partial symbol definitions.\n\ -Usage: mt print psymbols [-objfile objfile] [-pc address] [--] [outfile]\n\ - mt print psymbols [-objfile objfile] [-source source] [--] [outfile]\n\ +Usage: mt print psymbols [-objfile OBJFILE] [-pc ADDRESS] [--] [OUTFILE]\n\ + mt print psymbols [-objfile OBJFILE] [-source SOURCE] [--] [OUTFILE]\n\ Entries in the partial symbol table are dumped to file OUTFILE,\n\ or the terminal if OUTFILE is unspecified.\n\ If ADDRESS is provided, dump only the file for that address.\n\ diff --git a/gdb/symmisc.c b/gdb/symmisc.c index d30a35481e..2f5005b63c 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -1072,8 +1072,8 @@ _initialize_symmisc (void) add_cmd ("symbols", class_maintenance, maintenance_print_symbols, _("\ Print dump of current symbol definitions.\n\ -Usage: mt print symbols [-pc address] [--] [outfile]\n\ - mt print symbols [-objfile objfile] [-source source] [--] [outfile]\n\ +Usage: mt print symbols [-pc ADDRESS] [--] [OUTFILE]\n\ + mt print symbols [-objfile OBJFILE] [-source SOURCE] [--] [OUTFILE]\n\ Entries in the full symbol table are dumped to file OUTFILE,\n\ or the terminal if OUTFILE is unspecified.\n\ If ADDRESS is provided, dump only the file for that address.\n\ @@ -1083,7 +1083,7 @@ If OBJFILE is provided, dump only that file's minimal symbols."), add_cmd ("msymbols", class_maintenance, maintenance_print_msymbols, _("\ Print dump of current minimal symbol definitions.\n\ -Usage: mt print msymbols [-objfile objfile] [--] [outfile]\n\ +Usage: mt print msymbols [-objfile OBJFILE] [--] [OUTFILE]\n\ Entries in the minimal symbol table are dumped to file OUTFILE,\n\ or the terminal if OUTFILE is unspecified.\n\ If OBJFILE is provided, dump only that file's minimal symbols."),