aboutsummaryrefslogtreecommitdiff
path: root/gdb/dcache.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-18 15:25:32 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-18 15:25:32 +0000
commit5bf193a2eedab2cf1437c762fee2cfc8249753a0 (patch)
treea209cafbc0683a5e13b2a911bd3c423fd103719f /gdb/dcache.c
parentac40b91956761ebc182da98f5c3cdae13c6f8696 (diff)
downloadfsf-binutils-gdb-5bf193a2eedab2cf1437c762fee2cfc8249753a0.zip
fsf-binutils-gdb-5bf193a2eedab2cf1437c762fee2cfc8249753a0.tar.gz
fsf-binutils-gdb-5bf193a2eedab2cf1437c762fee2cfc8249753a0.tar.bz2
2005-02-18 Andrew Cagney <cagney@gnu.org>
Use add_setshow_boolean_command through out. Delete #ifdef 0'ed code adding set/show boolean commands. * cp-valprint.c, dcache.c, exec.c, gdbtypes.c, infrun.c: Update. * monitor.c, p-valprint.c, pa64solib.c, printcmd.c: Update. * proc-api.c, remote-mips.c, remote.c, solib.c: Update. * somsolib.c, symfile.c, top.c, utils.c, valops.c: Update. * valprint.c, win32-nat.c, wince.c, xcoffsolib.c: Update. * cli/cli-cmds.c: Update.
Diffstat (limited to 'gdb/dcache.c')
-rw-r--r--gdb/dcache.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/dcache.c b/gdb/dcache.c
index 297e849..b1e53e6 100644
--- a/gdb/dcache.c
+++ b/gdb/dcache.c
@@ -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."),
+ NULL,
+ NULL, /* FIXME: i18n: */
+ &setlist, &showlist);
add_info ("dcache", dcache_info,
_("Print information on the dcache performance."));