| Index: gdb/python/py-newobjfileevent.c
|
| diff --git a/gdb/python/py-newobjfileevent.c b/gdb/python/py-newobjfileevent.c
|
| index d014be60961abf4f6f3f3a75e2be2174ae17f518..d781e92f95d09624c15c48b32ab618a8e922a252 100644
|
| --- a/gdb/python/py-newobjfileevent.c
|
| +++ b/gdb/python/py-newobjfileevent.c
|
| @@ -1,6 +1,6 @@
|
| /* Python interface to new object file loading events.
|
|
|
| - Copyright (C) 2011-2012 Free Software Foundation, Inc.
|
| + Copyright (C) 2011-2013 Free Software Foundation, Inc.
|
|
|
| This file is part of GDB.
|
|
|
| @@ -17,9 +17,11 @@
|
| You should have received a copy of the GNU General Public License
|
| along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
| +#include "defs.h"
|
| #include "py-event.h"
|
|
|
| -static PyTypeObject new_objfile_event_object_type;
|
| +static PyTypeObject new_objfile_event_object_type
|
| + CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("event_object");
|
|
|
| static PyObject *
|
| create_new_objfile_event_object (struct objfile *objfile)
|
| @@ -31,6 +33,8 @@ create_new_objfile_event_object (struct objfile *objfile)
|
| if (!objfile_event)
|
| goto fail;
|
|
|
| + /* Note that objfile_to_objfile_object returns a borrowed reference,
|
| + so we don't need a decref here. */
|
| py_objfile = objfile_to_objfile_object (objfile);
|
| if (!py_objfile || evpy_add_attribute (objfile_event,
|
| "new_objfile",
|
|
|