From 35096d9d67ac1c2bc69fff09e23849df4c238233 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 18 Feb 2005 19:49:52 +0000 Subject: 2005-02-18 Andrew Cagney Use add_setshow_uinteger_cmd through out. * printcmd.c, source.c, utils.c, valprint.c: Update. --- gdb/utils.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'gdb/utils.c') 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 (); -- cgit v1.1