This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] init-if-undefined command
- From: Jim Blandy <jimb at red-bean dot com>
- To: Andrew STUBBS <andrew dot stubbs at st dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 29 Nov 2005 21:41:48 -0800
- Subject: Re: [PATCH] init-if-undefined command
- References: <437B3E56.3080306@st.com>
On 11/16/05, Andrew STUBBS <andrew.stubbs@st.com> wrote:
> + printf_unfiltered ("usage: init-if-undefined $<var> = <expr>\n");
Provide a full English sentence here, not a traditional Unix "usage:" thingy.
> + printf_unfiltered ("First parameter to init-if-undefined should be a GDB variable\n");
This should be a full sentence, with a preceding "The" and a period.
> + add_com ("init-if-undefined", class_vars, init_if_undefined_command, _("\
> +init-if-undefined <var> = <expr>\n\
> +Ensure that an internal variable exists and set it to\n\
> +a given value if it does not."));
Use upper case for syntactic metavariables, like VAR and EXPR, not
<angle brackets>. Refer to the metavariables in the doc string:
"Ensure that VAR ... and set it to the value of EXPR", etc.