diff options
-rw-r--r-- | gdb/python/py-type.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 863e6f6..c13b861 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -1465,10 +1465,14 @@ type_to_type_object (struct type *type) if (type->is_stub ()) type = check_typedef (type); } - catch (...) + catch (const gdb_exception_error &) { /* Just ignore failures in check_typedef. */ } + catch (const gdb_exception &except) + { + GDB_PY_HANDLE_EXCEPTION (except); + } type_obj = PyObject_New (type_object, &type_object_type); if (type_obj) |