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/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/valprint.c')
-rw-r--r-- | gdb/valprint.c | 64 |
1 files changed, 33 insertions, 31 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index 4af33c2..bc5d925 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -1212,12 +1212,12 @@ _initialize_valprint (void) &setprintlist), &showprintlist); - deprecated_add_show_from_set - (add_set_cmd ("null-stop", no_class, var_boolean, - (char *) &stop_print_at_null, - "Set printing of char arrays to stop at first null char.", - &setprintlist), - &showprintlist); + add_setshow_boolean_cmd ("null-stop", no_class, &stop_print_at_null, _("\ +Set printing of char arrays to stop at first null char."), _("\ +Show printing of char arrays to stop at first null char."), NULL, + NULL, + NULL, /* FIXME: i18n: */ + &setprintlist, &showprintlist); deprecated_add_show_from_set (add_set_cmd ("repeats", no_class, var_uinteger, @@ -1227,31 +1227,33 @@ _initialize_valprint (void) &setprintlist), &showprintlist); - deprecated_add_show_from_set - (add_set_cmd ("pretty", class_support, var_boolean, - (char *) &prettyprint_structs, - "Set prettyprinting of structures.", - &setprintlist), - &showprintlist); - - deprecated_add_show_from_set - (add_set_cmd ("union", class_support, var_boolean, (char *) &unionprint, - "Set printing of unions interior to structures.", - &setprintlist), - &showprintlist); - - deprecated_add_show_from_set - (add_set_cmd ("array", class_support, var_boolean, - (char *) &prettyprint_arrays, - "Set prettyprinting of arrays.", - &setprintlist), - &showprintlist); - - deprecated_add_show_from_set - (add_set_cmd ("address", class_support, var_boolean, (char *) &addressprint, - "Set printing of addresses.", - &setprintlist), - &showprintlist); + add_setshow_boolean_cmd ("pretty", class_support, &prettyprint_structs, _("\ +Set prettyprinting of structures."), _("\ +Show prettyprinting of structures."), NULL, + NULL, + NULL, /* FIXME: i18n: */ + &setprintlist, &showprintlist); + + add_setshow_boolean_cmd ("union", class_support, &unionprint, _("\ +Set printing of unions interior to structures."), _("\ +Show printing of unions interior to structures."), NULL, + NULL, + NULL, /* FIXME: i18n: */ + &setprintlist, &showprintlist); + + add_setshow_boolean_cmd ("array", class_support, &prettyprint_arrays, _("\ +Set prettyprinting of arrays."), _("\ +Show prettyprinting of arrays."), NULL, + NULL, + NULL, /* FIXME: i18n: */ + &setprintlist, &showprintlist); + + add_setshow_boolean_cmd ("address", class_support, &addressprint, _("\ +Set printing of addresses."), _("\ +Show printing of addresses."), NULL, + NULL, + NULL, /* FIXME: i18n: */ + &setprintlist, &showprintlist); c = add_set_cmd ("input-radix", class_support, var_uinteger, (char *) &input_radix, |