aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-18 19:49:52 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-18 19:49:52 +0000
commit35096d9d67ac1c2bc69fff09e23849df4c238233 (patch)
tree7634eb7fb0cab00b5ad606844be23ba2d91150bb /gdb/utils.c
parent85c078043bd43ef5cb76191a6d3e2159da0c302e (diff)
downloadfsf-binutils-gdb-35096d9d67ac1c2bc69fff09e23849df4c238233.zip
fsf-binutils-gdb-35096d9d67ac1c2bc69fff09e23849df4c238233.tar.gz
fsf-binutils-gdb-35096d9d67ac1c2bc69fff09e23849df4c238233.tar.bz2
2005-02-18 Andrew Cagney <cagney@gnu.org>
Use add_setshow_uinteger_cmd through out. * printcmd.c, source.c, utils.c, valprint.c: Update.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 98c734b..9c27b49 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -2446,16 +2446,19 @@ initialize_utils (void)
{
struct cmd_list_element *c;
- c = add_set_cmd ("width", class_support, var_uinteger, &chars_per_line,
- "Set number of characters gdb thinks are in a line.",
- &setlist);
- deprecated_add_show_from_set (c, &showlist);
- set_cmd_sfunc (c, set_width_command);
-
- c = add_set_cmd ("height", class_support, var_uinteger, &lines_per_page,
- "Set number of lines gdb thinks are in a page.", &setlist);
- deprecated_add_show_from_set (c, &showlist);
- set_cmd_sfunc (c, set_height_command);
+ add_setshow_uinteger_cmd ("width", class_support, &chars_per_line, _("\
+Set number of characters gdb thinks are in a line."), _("\
+Show number of characters gdb thinks are in a line."), NULL,
+ set_width_command,
+ NULL, /* FIXME: i18n: */
+ &setlist, &showlist);
+
+ add_setshow_uinteger_cmd ("height", class_support, &lines_per_page, _("\
+Set number of lines gdb thinks are in a page."), _("\
+Show number of lines gdb thinks are in a page."), NULL,
+ set_height_command,
+ NULL, /* FIXME: i18n: */
+ &setlist, &showlist);
init_page_info ();