* python/py-type.c (make_fielditem): Add gdb_assert_not_reached
authorTom Tromey <tromey@redhat.com>
Mon, 20 May 2013 20:25:40 +0000 (20:25 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 20 May 2013 20:25:40 +0000 (20:25 +0000)
as 'default' in the switch.

gdb/ChangeLog
gdb/python/py-type.c

index 12184a5..4894c0d 100644 (file)
@@ -1,5 +1,10 @@
 2013-05-20  Tom Tromey  <tromey@redhat.com>
 
+       * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
+       as 'default' in the switch.
+
+2013-05-20  Tom Tromey  <tromey@redhat.com>
+
        * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
        get_addr_from_python calls out of TRY_CATCH.
        (infpy_write_memory, infpy_search_memory): Likewise.
index b289a89..e29ae81 100644 (file)
@@ -301,6 +301,8 @@ make_fielditem (struct type *type, int i, enum gdbpy_iter_kind kind)
     case iter_values:
       item =  convert_field (type, i);
       break;
+    default:
+      gdb_assert_not_reached ("invalid gdbpy_iter_kind");
     }
   return item;