From: Vladimir Prus Date: Sat, 19 Sep 2009 11:12:42 +0000 (+0000) Subject: * mi/mi-cmd-stack.c (list_args_or_locals): Workaround X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=654e7c1f80fd51145112e0ce93d940dc432934bf;p=binutils-gdb.git * mi/mi-cmd-stack.c (list_args_or_locals): Workaround gcc warning. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 35349da8b93..3ac8fa27bc4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-09-19 Vladimir Prus + + * mi/mi-cmd-stack.c (list_args_or_locals): Workaround + gcc warning. + 2009-09-19 Vladimir Prus * mi/mi-cmds.h (mi_cmd_stack_list_variables): Declare. diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c index 4bcbe986e00..3dad54f85b9 100644 --- a/gdb/mi/mi-cmd-stack.c +++ b/gdb/mi/mi-cmd-stack.c @@ -261,6 +261,8 @@ list_args_or_locals (enum what_to_list what, int values, struct frame_info *fi) name_of_result = "args"; break; case all: name_of_result = "variables"; break; + default: + gdb_assert (("unexpected value", 0)); } cleanup_list = make_cleanup_ui_out_list_begin_end (uiout, name_of_result);