* [PATCH 0/3] More use of GNU-style metasyntactic variables
@ 2018-09-15 2:55 Tom Tromey
2018-09-15 2:55 ` [PATCH 1/3] Expand "show disassembler-options" output Tom Tromey
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Tom Tromey @ 2018-09-15 2:55 UTC (permalink / raw)
To: gdb-patches
I noticed a few spots where gdb was not using GNU-style metasyntactic
variables. This fixes nearly all the places I found -- the only
exception being MI. I would have converted MI, out of a sense of
consistency, but I was unsure if this was advisable.
Regression tested by the buildbot.
I think it would be good to check that new patches use the GNU style
here. There is some text in the standards manual, but mostly it boils
down to using all caps rather than <> or $ or whatever:
yes: Usage: command ARG ARG
no: Usage: command <arg> $arg
Tom
^ permalink raw reply [flat|nested] 12+ messages in thread* [PATCH 1/3] Expand "show disassembler-options" output 2018-09-15 2:55 [PATCH 0/3] More use of GNU-style metasyntactic variables Tom Tromey @ 2018-09-15 2:55 ` Tom Tromey 2018-09-16 3:12 ` Simon Marchi 2018-09-15 2:55 ` [PATCH 3/3] Use GNU style for metasyntactic variables in gdbserver Tom Tromey 2018-09-15 2:55 ` [PATCH 2/3] Use GNU style for metasyntactic variables in gdb Tom Tromey 2 siblings, 1 reply; 12+ messages in thread From: Tom Tromey @ 2018-09-15 2:55 UTC (permalink / raw) To: gdb-patches; +Cc: Tom Tromey I typed this: (gdb) help set disassembler-options Set the disassembler options. Usage: set disassembler-options OPTION [,OPTION]... See: 'show disassembler-options' for valid option values. ... so I tried what it said and got: (gdb) show disassembler-options The current disassembler options are '' This surprised me a little, so this patch adds some text to explain the situation when an architecture does not have disassembler options. While there I noticed one more spot where gdb was not using the GNU style for metasyntactic variables. This patch fixes this as well. gdb/ChangeLog 2018-09-14 Tom Tromey <tom@tromey.com> * disasm.c (show_disassembler_options_sfunc): Use GNU style for metasyntactic variables. Print message if no disassembler options are available. --- gdb/ChangeLog | 6 ++++++ gdb/disasm.c | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/gdb/disasm.c b/gdb/disasm.c index 11793df67c0..d908af3fb43 100644 --- a/gdb/disasm.c +++ b/gdb/disasm.c @@ -1014,13 +1014,18 @@ show_disassembler_options_sfunc (struct ui_file *file, int from_tty, valid_options_and_args = gdbarch_valid_disassembler_options (gdbarch); if (valid_options_and_args == NULL) - return; + { + fputs_filtered (_("(There are no disassembler options available " + "for this architecture.)\n"), + file); + return; + } valid_options = &valid_options_and_args->options; fprintf_filtered (file, _("\n\ The following disassembler options are supported for use with the\n\ -'set disassembler-options <option>[,<option>...]' command:\n")); +'set disassembler-options OPTION [,OPTION]...' command:\n")); if (valid_options->description != NULL) { -- 2.17.1 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/3] Expand "show disassembler-options" output 2018-09-15 2:55 ` [PATCH 1/3] Expand "show disassembler-options" output Tom Tromey @ 2018-09-16 3:12 ` Simon Marchi 2018-09-16 12:18 ` Tom Tromey 0 siblings, 1 reply; 12+ messages in thread From: Simon Marchi @ 2018-09-16 3:12 UTC (permalink / raw) To: Tom Tromey, gdb-patches On 2018-09-14 10:55 p.m., Tom Tromey wrote: > I typed this: > > (gdb) help set disassembler-options > Set the disassembler options. > Usage: set disassembler-options OPTION [,OPTION]... > > See: 'show disassembler-options' for valid option values. > > ... so I tried what it said and got: > > (gdb) show disassembler-options > The current disassembler options are '' > > This surprised me a little, so this patch adds some text to explain > the situation when an architecture does not have disassembler options. > > While there I noticed one more spot where gdb was not using the GNU > style for metasyntactic variables. This patch fixes this as well. > > gdb/ChangeLog > 2018-09-14 Tom Tromey <tom@tromey.com> > > * disasm.c (show_disassembler_options_sfunc): Use GNU style for > metasyntactic variables. Print message if no disassembler options > are available. > --- > gdb/ChangeLog | 6 ++++++ > gdb/disasm.c | 9 +++++++-- > 2 files changed, 13 insertions(+), 2 deletions(-) > > diff --git a/gdb/disasm.c b/gdb/disasm.c > index 11793df67c0..d908af3fb43 100644 > --- a/gdb/disasm.c > +++ b/gdb/disasm.c > @@ -1014,13 +1014,18 @@ show_disassembler_options_sfunc (struct ui_file *file, int from_tty, > valid_options_and_args = gdbarch_valid_disassembler_options (gdbarch); > > if (valid_options_and_args == NULL) > - return; > + { > + fputs_filtered (_("(There are no disassembler options available " > + "for this architecture.)\n"), > + file); > + return; > + } It's probably a matter of taste, but I would use the same format as the message shown when there are options available: no parenthesis and an empty line before. Otherwise, this LGTM. Simon ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/3] Expand "show disassembler-options" output 2018-09-16 3:12 ` Simon Marchi @ 2018-09-16 12:18 ` Tom Tromey 0 siblings, 0 replies; 12+ messages in thread From: Tom Tromey @ 2018-09-16 12:18 UTC (permalink / raw) To: Simon Marchi; +Cc: Tom Tromey, gdb-patches >>>>> "Simon" == Simon Marchi <simark@simark.ca> writes: Simon> It's probably a matter of taste, but I would use the same format as the message Simon> shown when there are options available: no parenthesis and an empty line before. Sounds fine to me. I'm going to check it in with this change. Tom ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 3/3] Use GNU style for metasyntactic variables in gdbserver 2018-09-15 2:55 [PATCH 0/3] More use of GNU-style metasyntactic variables Tom Tromey 2018-09-15 2:55 ` [PATCH 1/3] Expand "show disassembler-options" output Tom Tromey @ 2018-09-15 2:55 ` Tom Tromey 2018-09-16 3:17 ` Simon Marchi 2018-09-15 2:55 ` [PATCH 2/3] Use GNU style for metasyntactic variables in gdb Tom Tromey 2 siblings, 1 reply; 12+ messages in thread From: Tom Tromey @ 2018-09-15 2:55 UTC (permalink / raw) To: gdb-patches; +Cc: Tom Tromey This changes a couple of places in gdbserver to use the GNU style for metasyntactic variables. 2018-09-14 Tom Tromey <tom@tromey.com> * remote-utils.c (remote_open): Use GNU style for metasyntactic variables. * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic variables. --- gdb/gdbserver/ChangeLog | 7 +++++++ gdb/gdbserver/gdbreplay.c | 2 +- gdb/gdbserver/remote-utils.c | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/gdbserver/gdbreplay.c b/gdb/gdbserver/gdbreplay.c index b05209c4d14..9e81541712e 100644 --- a/gdb/gdbserver/gdbreplay.c +++ b/gdb/gdbserver/gdbreplay.c @@ -448,7 +448,7 @@ gdbreplay_version (void) static void gdbreplay_usage (FILE *stream) { - fprintf (stream, "Usage:\tgdbreplay <logfile> <host:port>\n"); + fprintf (stream, "Usage:\tgdbreplay LOGFILE HOST:PORT\n"); if (REPORT_BUGS_TO[0] && stream == stdout) fprintf (stream, "Report bugs to \"%s\".\n", REPORT_BUGS_TO); } diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index 38c90324288..9199a9c7add 100644 --- a/gdb/gdbserver/remote-utils.c +++ b/gdb/gdbserver/remote-utils.c @@ -336,7 +336,7 @@ remote_open (const char *name) port_str = strchr (name, ':'); #ifdef USE_WIN32API if (port_str == NULL) - error ("Only <host>:<port> is supported on this platform."); + error ("Only HOST:PORT is supported on this platform."); #endif if (strcmp (name, STDIO_CONNECTION_NAME) == 0) -- 2.17.1 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 3/3] Use GNU style for metasyntactic variables in gdbserver 2018-09-15 2:55 ` [PATCH 3/3] Use GNU style for metasyntactic variables in gdbserver Tom Tromey @ 2018-09-16 3:17 ` Simon Marchi 0 siblings, 0 replies; 12+ messages in thread From: Simon Marchi @ 2018-09-16 3:17 UTC (permalink / raw) To: Tom Tromey, gdb-patches On 2018-09-14 10:55 p.m., Tom Tromey wrote: > This changes a couple of places in gdbserver to use the GNU style for > metasyntactic variables. LGTM. Simon ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 2/3] Use GNU style for metasyntactic variables in gdb 2018-09-15 2:55 [PATCH 0/3] More use of GNU-style metasyntactic variables Tom Tromey 2018-09-15 2:55 ` [PATCH 1/3] Expand "show disassembler-options" output Tom Tromey 2018-09-15 2:55 ` [PATCH 3/3] Use GNU style for metasyntactic variables in gdbserver Tom Tromey @ 2018-09-15 2:55 ` Tom Tromey 2018-09-16 3:17 ` Simon Marchi 2018-09-16 3:20 ` Simon Marchi 2 siblings, 2 replies; 12+ messages in thread From: Tom Tromey @ 2018-09-15 2:55 UTC (permalink / raw) To: gdb-patches; +Cc: Tom Tromey I searched for other spots that did not use the GNU style for metasyntactic syntactic variables. This patch fixes most of the ones I found in gdb proper. There are a few remaining in MI, but I was unsure whether those should be touched. gdb/ChangeLog 2018-09-14 Tom Tromey <tom@tromey.com> * top.c (new_ui_command): Use GNU style for metasyntactic variables. * breakpoint.c (stopat_command): Use GNU style for metasyntactic variables. * maint.c (maintenance_translate_address): Remove "<>" around text. * interps.c (interpreter_exec_cmd): Use GNU style for metasyntactic variables. * nto-procfs.c (nto_procfs_target_info): Use GNU style for metasyntactic variables. * tracepoint.c (tfind_range_command): Use GNU style for metasyntactic variables. (tfind_outside_command): Likewise. (_initialize_tracepoint): Likewise. * remote.c (extended_remote_target::create_inferior): Use GNU style for metasyntactic variables. * sparc64-tdep.c (adi_examine_command): Use GNU style for metasyntactic variables. (adi_assign_command): Likewise. gdb/testsuite/ChangeLog 2018-09-14 Tom Tromey <tom@tromey.com> * gdb.base/new-ui.exp (do_execution_tests): Update. * gdb.base/dbx.exp (test_breakpoints): Update. --- gdb/ChangeLog | 22 ++++++++++++++++++++++ gdb/breakpoint.c | 2 +- gdb/interps.c | 2 +- gdb/maint.c | 2 +- gdb/nto-procfs.c | 2 +- gdb/remote.c | 2 +- gdb/sparc64-tdep.c | 15 +++++++++------ gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/dbx.exp | 2 +- gdb/testsuite/gdb.base/new-ui.exp | 2 +- gdb/top.c | 2 +- gdb/tracepoint.c | 8 ++++---- 12 files changed, 48 insertions(+), 18 deletions(-) diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 4e7dac51574..85cb7d7afcd 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -9591,7 +9591,7 @@ stopat_command (const char *arg, int from_tty) } if (badInput) - printf_filtered (_("Usage: stop at <line>\n")); + printf_filtered (_("Usage: stop at LINE\n")); else break_command_1 (arg, 0, from_tty); } diff --git a/gdb/interps.c b/gdb/interps.c index 789ae869469..6fe4c74e938 100644 --- a/gdb/interps.c +++ b/gdb/interps.c @@ -375,7 +375,7 @@ interpreter_exec_cmd (const char *args, int from_tty) nrules = prules.count (); if (nrules < 2) - error (_("usage: interpreter-exec <interpreter> [ <command> ... ]")); + error (_("Usage: interpreter-exec INTERPRETER [ COMMAND... ]")); old_interp = ui_interp->current_interpreter; diff --git a/gdb/maint.c b/gdb/maint.c index 5d4701cfacc..19db8a850b3 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -444,7 +444,7 @@ maintenance_translate_address (const char *arg, int from_tty) while (*p && !isspace (*p)) /* Find end of section name. */ p++; if (*p == '\000') /* End of command? */ - error (_("Need to specify <section-name> and <address>")); + error (_("Need to specify section name and address")); int arg_len = p - arg; p = skip_spaces (p + 1); diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index 54357af85b2..ed2ef37471d 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -143,7 +143,7 @@ class nto_procfs_target_native final : public nto_procfs_target static const target_info nto_procfs_target_info = { "procfs", N_("QNX Neutrino local or remote process"), - N_("QNX Neutrino process. target procfs <node>") + N_("QNX Neutrino process. target procfs NODE") }; struct nto_procfs_target_procfs final : public nto_procfs_target diff --git a/gdb/remote.c b/gdb/remote.c index 3b19da75eaf..39b3823ffc4 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -10158,7 +10158,7 @@ Remote replied unexpectedly while setting startup-with-shell: %s"), if (remote_exec_file[0]) error (_("Remote target does not support \"set remote exec-file\"")); if (!args.empty ()) - error (_("Remote target does not support \"set args\" or run <ARGS>")); + error (_("Remote target does not support \"set args\" or run ARGS")); /* Fall back to "R". */ extended_remote_restart (); diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c index f25f554f753..b1ee6c1b57d 100644 --- a/gdb/sparc64-tdep.c +++ b/gdb/sparc64-tdep.c @@ -449,7 +449,7 @@ do_assign (CORE_ADDR start, size_t bcnt, int version) Command syntax: - adi (examine|x)/count <addr> */ + adi (examine|x)[/COUNT] [ADDR] */ static void adi_examine_command (const char *args, int from_tty) @@ -473,7 +473,7 @@ adi_examine_command (const char *args, int from_tty) if (p != 0 && *p != 0) next_address = parse_and_eval_address (p); if (!cnt || !next_address) - error (_("Usage: adi examine|x[/count] <addr>")); + error (_("Usage: adi examine|x[/COUNT] [ADDR]")); do_examine (next_address, cnt); } @@ -482,11 +482,14 @@ adi_examine_command (const char *args, int from_tty) Command syntax: - adi (assign|a)/count <addr> = <version> */ + adi (assign|a)[/COUNT] ADDR = VERSION */ static void adi_assign_command (const char *args, int from_tty) { + static const char *adi_usage + = N_("Usage: adi assign|a[/COUNT] ADDR = VERSION"); + /* make sure program is active and adi is available */ if (!target_has_execution) error (_("ADI command requires a live process/thread")); @@ -496,13 +499,13 @@ adi_assign_command (const char *args, int from_tty) const char *exp = args; if (exp == 0) - error_no_arg (_("Usage: adi assign|a[/count] <addr> = <version>")); + error_no_arg (_(adi_usage)); char *q = (char *) strchr (exp, '='); if (q) *q++ = 0; else - error (_("Usage: adi assign|a[/count] <addr> = <version>")); + error ("%s", _(adi_usage)); size_t cnt = 1; const char *p = args; @@ -516,7 +519,7 @@ adi_assign_command (const char *args, int from_tty) if (p != 0 && *p != 0) next_address = parse_and_eval_address (p); else - error (_("Usage: adi assign|a[/count] <addr> = <version>")); + error ("%s", _(adi_usage)); int version = 0; if (q != NULL) /* parse version tag */ diff --git a/gdb/testsuite/gdb.base/dbx.exp b/gdb/testsuite/gdb.base/dbx.exp index 40e02380cb9..688fcbed133 100644 --- a/gdb/testsuite/gdb.base/dbx.exp +++ b/gdb/testsuite/gdb.base/dbx.exp @@ -234,7 +234,7 @@ proc test_breakpoints { } { set stop_line [gdb_get_line_number "stop-at-call"] gdb_test "stop at average.c:$stop_line" "Breakpoint.*at.*: file.*average\.c, line $stop_line.*" gdb_test "stop in average.c:$stop_line" "Usage: stop in <function . address>" - gdb_test "stop at main" "Usage: stop at <line>" + gdb_test "stop at main" "Usage: stop at LINE" } # diff --git a/gdb/testsuite/gdb.base/new-ui.exp b/gdb/testsuite/gdb.base/new-ui.exp index ec15e221a17..36b7ff25df9 100644 --- a/gdb/testsuite/gdb.base/new-ui.exp +++ b/gdb/testsuite/gdb.base/new-ui.exp @@ -87,7 +87,7 @@ proc_with_prefix do_test {} { } gdb_test "new-ui" \ - "usage: new-ui <interpreter> <tty>" \ + "Usage: new-ui INTERPRETER TTY" \ "new-ui without arguments" set test "new-ui does not repeat" diff --git a/gdb/top.c b/gdb/top.c index 470276e3106..0a4d36cbea4 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -338,7 +338,7 @@ new_ui_command (const char *args, int from_tty) argc = argv.count (); if (argc < 2) - error (_("usage: new-ui <interpreter> <tty>")); + error (_("Usage: new-ui INTERPRETER TTY")); interpreter_name = argv[0]; tty_name = argv[1]; diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index a96f56a06b5..bb5a8507739 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -2427,7 +2427,7 @@ tfind_range_command (const char *args, int from_tty) if (args == 0 || *args == 0) { /* XXX FIXME: what should default behavior be? */ - printf_filtered ("Usage: tfind range <startaddr>,<endaddr>\n"); + printf_filtered ("Usage: tfind range STARTADDR, ENDADDR\n"); return; } @@ -2461,7 +2461,7 @@ tfind_outside_command (const char *args, int from_tty) if (args == 0 || *args == 0) { /* XXX FIXME: what should default behavior be? */ - printf_filtered ("Usage: tfind outside <startaddr>,<endaddr>\n"); + printf_filtered ("Usage: tfind outside STARTADDR, ENDADDR\n"); return; } @@ -4031,12 +4031,12 @@ No argument means forward by one frame; '-' means backward by one frame."), add_cmd ("outside", class_trace, tfind_outside_command, _("\ Select a trace frame whose PC is outside the given range (exclusive).\n\ -Usage: tfind outside addr1, addr2"), +Usage: tfind outside ADDR1, ADDR2"), &tfindlist); add_cmd ("range", class_trace, tfind_range_command, _("\ Select a trace frame whose PC is in the given range (inclusive).\n\ -Usage: tfind range addr1,addr2"), +Usage: tfind range ADDR1, ADDR2"), &tfindlist); add_cmd ("line", class_trace, tfind_line_command, _("\ -- 2.17.1 ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/3] Use GNU style for metasyntactic variables in gdb 2018-09-15 2:55 ` [PATCH 2/3] Use GNU style for metasyntactic variables in gdb Tom Tromey @ 2018-09-16 3:17 ` Simon Marchi 2018-09-16 12:13 ` Tom Tromey 2018-09-16 3:20 ` Simon Marchi 1 sibling, 1 reply; 12+ messages in thread From: Simon Marchi @ 2018-09-16 3:17 UTC (permalink / raw) To: Tom Tromey, gdb-patches On 2018-09-14 10:55 p.m., Tom Tromey wrote: > I searched for other spots that did not use the GNU style for > metasyntactic syntactic variables. This patch fixes most of the ones > I found in gdb proper. There are a few remaining in MI, but I was > unsure whether those should be touched. LGTM. Out of curiosity, is there a place in the GNU coding standard that explicitly explains this? Simon ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/3] Use GNU style for metasyntactic variables in gdb 2018-09-16 3:17 ` Simon Marchi @ 2018-09-16 12:13 ` Tom Tromey 0 siblings, 0 replies; 12+ messages in thread From: Tom Tromey @ 2018-09-16 12:13 UTC (permalink / raw) To: Simon Marchi; +Cc: Tom Tromey, gdb-patches >>>>> "Simon" == Simon Marchi <simark@simark.ca> writes: Simon> On 2018-09-14 10:55 p.m., Tom Tromey wrote: >> I searched for other spots that did not use the GNU style for >> metasyntactic syntactic variables. This patch fixes most of the ones >> I found in gdb proper. There are a few remaining in MI, but I was >> unsure whether those should be touched. Simon> LGTM. Simon> Out of curiosity, is there a place in the GNU coding standard that explicitly Simon> explains this? Well, I thought so. Maybe there was in the past and it was removed? Or maybe it needs to be added, because it is definitely a GNU convention. You can see it in the --help of any GNU program. Maybe this is one of those things that François Pinard was planning to put in the proposed Gnits manual that we never wrote. I sent a note to bug-standards. Anyway I could only find a mention in the Texinfo manual, in the @var node. Tom ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/3] Use GNU style for metasyntactic variables in gdb 2018-09-15 2:55 ` [PATCH 2/3] Use GNU style for metasyntactic variables in gdb Tom Tromey 2018-09-16 3:17 ` Simon Marchi @ 2018-09-16 3:20 ` Simon Marchi 2018-09-16 12:16 ` Tom Tromey 2018-09-16 12:42 ` Tom Tromey 1 sibling, 2 replies; 12+ messages in thread From: Simon Marchi @ 2018-09-16 3:20 UTC (permalink / raw) To: Tom Tromey, gdb-patches On 2018-09-14 10:55 p.m., Tom Tromey wrote: > I searched for other spots that did not use the GNU style for > metasyntactic syntactic variables. This patch fixes most of the ones > I found in gdb proper. There are a few remaining in MI, but I was > unsure whether those should be touched. About MI, I don't see why it should be different. Do you have specific examples? I stumbled on some messages like this: error (_("-environment-cd: Usage DIRECTORY")); That looks confusing to me, I would much prefer error (_("Usage: -environment-cd DIRECTORY")); Simon ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/3] Use GNU style for metasyntactic variables in gdb 2018-09-16 3:20 ` Simon Marchi @ 2018-09-16 12:16 ` Tom Tromey 2018-09-16 12:42 ` Tom Tromey 1 sibling, 0 replies; 12+ messages in thread From: Tom Tromey @ 2018-09-16 12:16 UTC (permalink / raw) To: Simon Marchi; +Cc: Tom Tromey, gdb-patches >>>>> "Simon" == Simon Marchi <simark@simark.ca> writes: Simon> On 2018-09-14 10:55 p.m., Tom Tromey wrote: >> I searched for other spots that did not use the GNU style for >> metasyntactic syntactic variables. This patch fixes most of the ones >> I found in gdb proper. There are a few remaining in MI, but I was >> unsure whether those should be touched. Simon> About MI, I don't see why it should be different. Do you have specific Simon> examples? if (argc < 1) error (_("USAGE: %s <BKPT> [<COMMAND> [<COMMAND>...]]"), command); But there are several if you search for [<][a-z][a-z-]*[>] Simon> I stumbled on some messages like this: Simon> error (_("-environment-cd: Usage DIRECTORY")); Simon> That looks confusing to me, I would much prefer Simon> error (_("Usage: -environment-cd DIRECTORY")); Agreed. Which reminds me that my gdb CLI usage quest is also incomplete. Tom ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 2/3] Use GNU style for metasyntactic variables in gdb 2018-09-16 3:20 ` Simon Marchi 2018-09-16 12:16 ` Tom Tromey @ 2018-09-16 12:42 ` Tom Tromey 1 sibling, 0 replies; 12+ messages in thread From: Tom Tromey @ 2018-09-16 12:42 UTC (permalink / raw) To: Simon Marchi; +Cc: Tom Tromey, gdb-patches >>>>> "Simon" == Simon Marchi <simark@simark.ca> writes: Simon> I stumbled on some messages like this: Simon> error (_("-environment-cd: Usage DIRECTORY")); Simon> That looks confusing to me, I would much prefer Simon> error (_("Usage: -environment-cd DIRECTORY")); I'm sending a patch for MI through the buildbot now. Tom ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2018-09-16 12:42 UTC | newest] Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2018-09-15 2:55 [PATCH 0/3] More use of GNU-style metasyntactic variables Tom Tromey 2018-09-15 2:55 ` [PATCH 1/3] Expand "show disassembler-options" output Tom Tromey 2018-09-16 3:12 ` Simon Marchi 2018-09-16 12:18 ` Tom Tromey 2018-09-15 2:55 ` [PATCH 3/3] Use GNU style for metasyntactic variables in gdbserver Tom Tromey 2018-09-16 3:17 ` Simon Marchi 2018-09-15 2:55 ` [PATCH 2/3] Use GNU style for metasyntactic variables in gdb Tom Tromey 2018-09-16 3:17 ` Simon Marchi 2018-09-16 12:13 ` Tom Tromey 2018-09-16 3:20 ` Simon Marchi 2018-09-16 12:16 ` Tom Tromey 2018-09-16 12:42 ` Tom Tromey
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox