* python/py-event.c (gdbpy_initialize_event_generic): Return
early if PyType_Ready fails.
This commit is contained in:
parent
0d3a2e8a79
commit
9f4ff0c296
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-05-20 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* python/py-event.c (gdbpy_initialize_event_generic): Return
|
||||||
|
early if PyType_Ready fails.
|
||||||
|
|
||||||
2013-05-20 Tom Tromey <tromey@redhat.com>
|
2013-05-20 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* python/py-type.c (make_fielditem): Add gdb_assert_not_reached
|
* python/py-type.c (make_fielditem): Add gdb_assert_not_reached
|
||||||
|
|
|
@ -76,7 +76,7 @@ gdbpy_initialize_event_generic (PyTypeObject *type,
|
||||||
char *name)
|
char *name)
|
||||||
{
|
{
|
||||||
if (PyType_Ready (type) < 0)
|
if (PyType_Ready (type) < 0)
|
||||||
goto fail;
|
return -1;
|
||||||
|
|
||||||
Py_INCREF (type);
|
Py_INCREF (type);
|
||||||
if (PyModule_AddObject (gdb_module, name, (PyObject *) type) < 0)
|
if (PyModule_AddObject (gdb_module, name, (PyObject *) type) < 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue