diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dcache.c | 24 |
2 files changed, 17 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ec48b97..91ee521 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2013-03-26 Pedro Alves <palves@redhat.com> + * dcache.c (_initialize_dcache): Make the "set dcache line-size" + and "set dcache size" commands zuinteger instead of uinteger. + +2013-03-26 Pedro Alves <palves@redhat.com> + * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version" command zuinteger instead of uinteger. diff --git a/gdb/dcache.c b/gdb/dcache.c index 6e2c7a2..acb9de4 100644 --- a/gdb/dcache.c +++ b/gdb/dcache.c @@ -727,20 +727,20 @@ Use this command to set number of lines in dcache and line-size."), Show dcachesettings."), &dcache_show_list, "show dcache ", /*allow_unknown*/0, &showlist); - add_setshow_uinteger_cmd ("line-size", class_obscure, - &dcache_line_size, _("\ + add_setshow_zuinteger_cmd ("line-size", class_obscure, + &dcache_line_size, _("\ Set dcache line size in bytes (must be power of 2)."), _("\ Show dcache line size."), - NULL, - set_dcache_line_size, - NULL, - &dcache_set_list, &dcache_show_list); - add_setshow_uinteger_cmd ("size", class_obscure, - &dcache_size, _("\ + NULL, + set_dcache_line_size, + NULL, + &dcache_set_list, &dcache_show_list); + add_setshow_zuinteger_cmd ("size", class_obscure, + &dcache_size, _("\ Set number of dcache lines."), _("\ Show number of dcache lines."), - NULL, - set_dcache_size, - NULL, - &dcache_set_list, &dcache_show_list); + NULL, + set_dcache_size, + NULL, + &dcache_set_list, &dcache_show_list); } |