From 5bf193a2eedab2cf1437c762fee2cfc8249753a0 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 18 Feb 2005 15:25:32 +0000 Subject: 2005-02-18 Andrew Cagney 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. --- gdb/cp-valprint.c | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) (limited to 'gdb/cp-valprint.c') diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 959d2e0..dae9318 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -810,26 +810,29 @@ cp_print_hpacc_virtual_table_entries (struct type *type, int *vfuncs, void _initialize_cp_valprint (void) { - deprecated_add_show_from_set - (add_set_cmd ("static-members", class_support, var_boolean, - (char *) &static_field_print, - "Set printing of C++ static members.", - &setprintlist), - &showprintlist); + add_setshow_boolean_cmd ("static-members", class_support, + &static_field_print, _("\ +Set printing of C++ static members."), _("\ +Show printing of C++ static members."), NULL, + NULL, + NULL, /* FIXME: i18n: */ + &setprintlist, &showprintlist); /* Turn on printing of static fields. */ static_field_print = 1; - deprecated_add_show_from_set - (add_set_cmd ("vtbl", class_support, var_boolean, (char *) &vtblprint, - "Set printing of C++ virtual function tables.", - &setprintlist), - &showprintlist); - - deprecated_add_show_from_set - (add_set_cmd ("object", class_support, var_boolean, (char *) &objectprint, - "Set printing of object's derived type based on vtable info.", - &setprintlist), - &showprintlist); + add_setshow_boolean_cmd ("vtbl", class_support, &vtblprint, _("\ +Set printing of C++ virtual function tables."), _("\ +Show printing of C++ virtual function tables."), NULL, + NULL, + NULL, /* FIXME: i18n: */ + &setprintlist, &showprintlist); + + add_setshow_boolean_cmd ("object", class_support, &objectprint, _("\ +Set printing of object's derived type based on vtable info."), _("\ +Show printing of object's derived type based on vtable info."), NULL, + NULL, + NULL, /* FIXME: i18n: */ + &setprintlist, &showprintlist); /* Give people the defaults which they are used to. */ objectprint = 0; -- cgit v1.1