summaryrefslogtreecommitdiff
path: root/gdb/valops.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
commit7425f4ec05a5dd944ec817ebf8f2131e34f2db71 (patch)
tree9479b9e1713cc972b7345f7185701d12009f945a /gdb/valops.c
parent26ab628f8fb333f4b372d216d514a67c28f4adfe (diff)
downloadgdb-7425f4ec05a5dd944ec817ebf8f2131e34f2db71.tar.gz
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/valops.c')
-rw-r--r--gdb/valops.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index f6fb32573c2..1c0e46b0ffe 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -2833,18 +2833,12 @@ cast_into_complex (struct type *type, struct value *val)
void
_initialize_valops (void)
{
-#if 0
- deprecated_add_show_from_set
- (add_set_cmd ("abandon", class_support, var_boolean, (char *) &auto_abandon,
- "Set automatic abandonment of expressions upon failure.",
- &setlist),
- &showlist);
-#endif
-
- deprecated_add_show_from_set
- (add_set_cmd ("overload-resolution", class_support, var_boolean, (char *) &overload_resolution,
- "Set overload resolution in evaluating C++ functions.",
- &setlist),
- &showlist);
+ add_setshow_boolean_cmd ("overload-resolution", class_support,
+ &overload_resolution, _("\
+Set overload resolution in evaluating C++ functions."), _("\
+Show overload resolution in evaluating C++ functions."), NULL,
+ NULL,
+ NULL, /* FIXME: i18n: */
+ &setlist, &showlist);
overload_resolution = 1;
}