Index: gdb/python/py-bpevent.c |
diff --git a/gdb/python/py-bpevent.c b/gdb/python/py-bpevent.c |
index 138c39f0b2b2b1016a4cee83ef43c8014e45afd2..5238ad89c237e93d78514a556ae7abc5d070ac7c 100644 |
--- a/gdb/python/py-bpevent.c |
+++ b/gdb/python/py-bpevent.c |
@@ -1,6 +1,6 @@ |
/* Python interface to inferior breakpoint stop events. |
- Copyright (C) 2009-2012 Free Software Foundation, Inc. |
+ Copyright (C) 2009-2013 Free Software Foundation, Inc. |
This file is part of GDB. |
@@ -17,11 +17,14 @@ |
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-stopevent.h" |
-static PyTypeObject breakpoint_event_object_type; |
+static PyTypeObject breakpoint_event_object_type |
+ CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("event_object"); |
-/* Create and initialize a BreakpointEvent object. */ |
+/* Create and initialize a BreakpointEvent object. This acquires new |
+ references to BREAKPOINT_LIST and FIRST_BP. */ |
PyObject * |
create_breakpoint_event_object (PyObject *breakpoint_list, PyObject *first_bp) |