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-Tag: sid-snapshot-20091001~153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=654e7c1f80fd51145112e0ce93d940dc432934bf;p=external%2Fbinutils.git * mi/mi-cmd-stack.c (list_args_or_locals): Workaround gcc warning. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 35349da..3ac8fa2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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. * mi/mi-cmds.c (mi_cmds): Register -stack-list-variables. * mi/mi-cmd-stack.c (enum what_to_list): New. diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c index 4bcbe98..3dad54f 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);