* python/py-type.c (typy_strip_typedefs): Don't call check_typedef
authorTom Tromey <tromey@redhat.com>
Wed, 6 Feb 2013 17:05:22 +0000 (17:05 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 6 Feb 2013 17:05:22 +0000 (17:05 +0000)
outside of TRY_CATCH.

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

index 2445117600faf44698658d63b8e806f0169bf399..3c49f96139599da9f888aa109e69b895ec60c016 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-06  Tom Tromey  <tromey@redhat.com>
+
+       * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
+       outside of TRY_CATCH.
+
 2013-02-06  Yao Qi  <yao@codesourcery.com>
 
        * mi/mi-interp.c: Include "tracepoint.h".
index 31b77767b9b509f86ef9fef67758a259a30b9809..051cff07f13f5801de8342365d37eb94f344cad4 100644 (file)
@@ -423,7 +423,7 @@ typy_strip_typedefs (PyObject *self, PyObject *args)
     }
   GDB_PY_HANDLE_EXCEPTION (except);
 
-  return type_to_type_object (check_typedef (type));
+  return type_to_type_object (type);
 }
 
 /* Strip typedefs and pointers/reference from a type.  Then check that