This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [commit] Use add_setshow_boolean_cmd
- From: "Eli Zaretskii" <eliz at gnu dot org>
- To: Andrew Cagney <cagney at gnu dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 18 Feb 2005 18:49:48 +0200
- Subject: Re: [commit] Use add_setshow_boolean_cmd
- References: <421608B6.5030004@gnu.org>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Fri, 18 Feb 2005 10:24:38 -0500
> From: Andrew Cagney <cagney@gnu.org>
>
> --- dcache.c 15 Feb 2005 15:49:08 -0000 1.21
> +++ dcache.c 18 Feb 2005 15:16:26 -0000
> @@ -585,18 +585,18 @@ dcache_info (char *exp, int tty)
> void
> _initialize_dcache (void)
> {
> - deprecated_add_show_from_set
> - (add_set_cmd ("remotecache", class_support, var_boolean,
> - (char *) &dcache_enabled_p,
> - "\
> -Set cache use for remote targets.\n\
> + add_setshow_boolean_cmd ("remotecache", class_support,
> + &dcache_enabled_p, _("\
> +Set cache use for remote targets."), _("\
> +Show cache use for remote targets."), _("\
> When on, use data caching for remote targets. For many remote targets\n\
> this option can offer better throughput for reading target memory.\n\
> Unfortunately, gdb does not currently know anything about volatile\n\
> registers and thus data caching will produce incorrect results with\n\
> -volatile registers are in use. By default, this option is off.",
> - &setlist),
> - &showlist);
> +volatile registers are in use. By default, this option is off."),
This, and other similar patches, need tio have an i18n comment to tell
the translators that the "When on..." part is the continuation of the
"Set/Show cache use..." doc string.