aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/mi/mi-cmd-stack.c2
2 files changed, 7 insertions, 0 deletions
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 <vladimir@codesourcery.com>
+ * mi/mi-cmd-stack.c (list_args_or_locals): Workaround
+ gcc warning.
+
+2009-09-19 Vladimir Prus <vladimir@codesourcery.com>
+
* 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);