]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/python/py-bpevent.c
2011-09-15 Kevin Pouget <kevin.pouget@st.com>
[thirdparty/binutils-gdb.git] / gdb / python / py-bpevent.c
index c7f79654a16d5c66cab856c147a6e68761fcf8b8..f37b2486b3609fac8a6861cbf4f94f60eae34498 100644 (file)
@@ -24,7 +24,7 @@ static PyTypeObject breakpoint_event_object_type;
 /* Create and initialize a BreakpointEvent object.  */
 
 PyObject *
-create_breakpoint_event_object (PyObject *breakpoint)
+create_breakpoint_event_object (PyObject *breakpoint_list, PyObject *first_bp)
 {
   PyObject *breakpoint_event_obj =
       create_stop_event_object (&breakpoint_event_object_type);
@@ -34,7 +34,11 @@ create_breakpoint_event_object (PyObject *breakpoint)
 
   if (evpy_add_attribute (breakpoint_event_obj,
                           "breakpoint",
-                          breakpoint) < 0)
+                          first_bp) < 0)
+    goto fail;
+  if (evpy_add_attribute (breakpoint_event_obj,
+                          "breakpoints",
+                          breakpoint_list) < 0)
     goto fail;
 
   return breakpoint_event_obj;