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/cli | |
parent | ac40b91956761ebc182da98f5c3cdae13c6f8696 (diff) | |
download | fsf-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/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 43978e9..dcbb5f9 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1121,12 +1121,12 @@ when gdb is started."), &cmdlist); add_com_alias ("q", "quit", class_support, 1); add_com_alias ("h", "help", class_support, 1); - c = add_set_cmd ("verbose", class_support, var_boolean, (char *) &info_verbose, - "Set ", - &setlist), - deprecated_add_show_from_set (c, &showlist); - set_cmd_sfunc (c, set_verbose); - set_verbose (NULL, 0, c); + add_setshow_boolean_cmd ("verbose", class_support, &info_verbose, _("\ +Set verbosity."), _("\ +Show verbosity."), NULL, + set_verbose, + NULL, /* FIXME: i18n: */ + &setlist, &showlist); add_prefix_cmd ("history", class_support, set_history, _("Generic command for setting command history parameters."), @@ -1135,11 +1135,13 @@ when gdb is started."), &cmdlist); _("Generic command for showing command history parameters."), &showhistlist, "show history ", 0, &showlist); - deprecated_add_show_from_set - (add_set_cmd ("expansion", no_class, var_boolean, (char *) &history_expansion_p, - "Set history expansion on command input.\n\ -Without an argument, history expansion is enabled.", &sethistlist), - &showhistlist); + add_setshow_boolean_cmd ("expansion", no_class, &history_expansion_p, _("\ +Set history expansion on command input."), _("\ +Show history expansion on command input."), _("\ +Without an argument, history expansion is enabled."), + NULL, + NULL, /* FIXME: i18n: */ + &sethistlist, &showhistlist); add_prefix_cmd ("info", class_info, info_command, _("\ Generic command for showing things about the program being debugged."), |