summaryrefslogtreecommitdiff
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
commit9b859adb4f3dfc4df5022746517422d8769100ee (patch)
tree82b26e146c4707374c429676d5c0a2f2d220509b /gdb/python
parent65882c1a92a8d600890bab983a7e013faac37e3e (diff)
downloadgdb-9b859adb4f3dfc4df5022746517422d8769100ee.tar.gz
* 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 b289a89e1fe..e29ae813e64 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;