This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [commit] Use add_setshow_boolean_cmd


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]