aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-20 20:25:40 +0000
committerTom Tromey <tromey@redhat.com>2013-05-20 20:25:40 +0000
commit0d3a2e8a797020b3fe5c70f1ad148c8a7297bbdb (patch)
treeb971c99d1139bfcdddcb3b9386997b8f6e51cc14 /gdb/python
parentb86af38a5a769f23d1af78761c654d68703c6237 (diff)
downloadgdb-0d3a2e8a797020b3fe5c70f1ad148c8a7297bbdb.zip
gdb-0d3a2e8a797020b3fe5c70f1ad148c8a7297bbdb.tar.gz
gdb-0d3a2e8a797020b3fe5c70f1ad148c8a7297bbdb.tar.bz2
* python/py-type.c (make_fielditem): Add gdb_assert_not_reached
as 'default' in the switch.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-type.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index b289a89..e29ae81 100644
--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -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;