* mi/mi-cmd-stack.c (list_args_or_locals): Use internal_error.
authorPedro Alves <palves@redhat.com>
Sat, 10 Oct 2009 16:58:13 +0000 (16:58 +0000)
committerPedro Alves <palves@redhat.com>
Sat, 10 Oct 2009 16:58:13 +0000 (16:58 +0000)
Put "break" statements on their own line.

gdb/ChangeLog
gdb/mi/mi-cmd-stack.c

index c18ed8011c7e0200326c999ceedb2a81a41eb32a..cc69b57435e7e0b4b01a0aab6635e5f4f237eccf 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-10  Pedro Alves  <pedro@codesourcery.com>
+
+       * mi/mi-cmd-stack.c (list_args_or_locals): Use internal_error.
+       Put "break" statements on their own line.
+
 2009-10-09  Pedro Alves  <pedro@codesourcery.com>
 
        * linux-nat.c (linux_nat_wait_1): Bail out, if TARGET_WNOHANG and
index 3dad54f85b99cc79b61a7ddd622ff7f136dccbc2..537af77bd9b03f55bf79c2b7980f366e2f73ac4a 100644 (file)
@@ -256,13 +256,17 @@ list_args_or_locals (enum what_to_list what, int values, struct frame_info *fi)
   switch (what)
     {
     case locals:
-      name_of_result = "locals"; break;
+      name_of_result = "locals";
+      break;
     case arguments:
-      name_of_result = "args"; break;
+      name_of_result = "args";
+      break;
     case all:
-      name_of_result = "variables"; break;
+      name_of_result = "variables";
+      break;
     default:
-      gdb_assert (("unexpected value", 0));
+      internal_error (__FILE__, __LINE__,
+                     "unexpected what_to_list: %d", (int) what);
     }
 
   cleanup_list = make_cleanup_ui_out_list_begin_end (uiout, name_of_result);