Use upper case for more metasyntactic variables in gdb
authorTom Tromey <tom@tromey.com>
Mon, 24 Dec 2018 21:41:40 +0000 (14:41 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 4 Jan 2019 18:08:02 +0000 (11:08 -0700)
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
2019-01-04  Tom Tromey  <tom@tromey.com>

* 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
gdb/ax-gdb.c
gdb/compile/compile.c
gdb/demangle.c
gdb/psymtab.c
gdb/symmisc.c

index 305eb7a835bf71b6d1d307ccf692186ef1bc0678..12305efaf48703b2bf707eb06bb3e60312752be6 100644 (file)
@@ -1,3 +1,17 @@
+2019-01-04  Tom Tromey  <tom@tromey.com>
+
+       * 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.
+
 2019-01-03  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-source.c (tui_set_source_content): Use xstrdup.
index eacec74aad8f981fb8b08245c1fd1d3327e289c5..88e9b4331fc75f4d845b337c8225f93dd33a696f 100644 (file)
@@ -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);
index 7ab546c26932286171ff772780c8aeed25ed3532..b11df7ddf6a456ea62a82d8a7f61f3a0de7de0cf 100644 (file)
@@ -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);
index a6372141bf4760e204c9e31ea1a83d735ddd2c06..29f46968a29c5b0c6539dd8945ffd390e5f5a5d8 100644 (file)
@@ -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);
 }
index 950b6fd3306ee65e2babf4ed51c8af22bef55628..f14aae6e5d2fa5791f8589cb206eaec0036f516b 100644 (file)
@@ -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\
index 3e67926b1ffbd85470077c60f559ae9ab7274528..46c820641678ae7029f749cea870768aff2d04d0 100644 (file)
@@ -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."),
This page took 0.045241 seconds and 4 git commands to generate.