diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-18 15:25:32 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-18 15:25:32 +0000 |
commit | 5bf193a2eedab2cf1437c762fee2cfc8249753a0 (patch) | |
tree | a209cafbc0683a5e13b2a911bd3c423fd103719f /gdb/cp-valprint.c | |
parent | ac40b91956761ebc182da98f5c3cdae13c6f8696 (diff) | |
download | gdb-5bf193a2eedab2cf1437c762fee2cfc8249753a0.zip gdb-5bf193a2eedab2cf1437c762fee2cfc8249753a0.tar.gz 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/cp-valprint.c')
-rw-r--r-- | gdb/cp-valprint.c | 37 |
1 files changed, 20 insertions, 17 deletions
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; |