From 654e7c1f80fd51145112e0ce93d940dc432934bf Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sat, 19 Sep 2009 11:12:42 +0000 Subject: [PATCH] * mi/mi-cmd-stack.c (list_args_or_locals): Workaround gcc warning. --- gdb/ChangeLog | 5 +++++ gdb/mi/mi-cmd-stack.c | 2 ++ 2 files changed, 7 insertions(+) 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); -- 2.30.2