diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-20 20:25:40 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-20 20:25:40 +0000 |
commit | 0d3a2e8a797020b3fe5c70f1ad148c8a7297bbdb (patch) | |
tree | b971c99d1139bfcdddcb3b9386997b8f6e51cc14 | |
parent | b86af38a5a769f23d1af78761c654d68703c6237 (diff) | |
download | binutils-0d3a2e8a797020b3fe5c70f1ad148c8a7297bbdb.zip binutils-0d3a2e8a797020b3fe5c70f1ad148c8a7297bbdb.tar.gz binutils-0d3a2e8a797020b3fe5c70f1ad148c8a7297bbdb.tar.bz2 |
* python/py-type.c (make_fielditem): Add gdb_assert_not_reached
as 'default' in the switch.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/python/py-type.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 12184a5..4894c0d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. 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; |