gdb/python: allow for catchpoint type breakpoints in python
[deliverable/binutils-gdb.git] / gdb / python / py-bpevent.c
index f6f3c4c237827958864d8986dcd9f0a442cb1580..736e498d5c7a52de37b5227fb77d5eda2f5587eb 100644 (file)
@@ -1,6 +1,6 @@
 /* Python interface to inferior breakpoint stop events.
 
-   Copyright (C) 2009-2018 Free Software Foundation, Inc.
+   Copyright (C) 2009-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -19,7 +19,6 @@
 
 #include "defs.h"
 #include "py-stopevent.h"
-#include "py-ref.h"
 
 /* Create and initialize a BreakpointEvent object.  This acquires new
    references to BREAKPOINT_LIST and FIRST_BP.  */
@@ -34,12 +33,12 @@ create_breakpoint_event_object (PyObject *breakpoint_list, PyObject *first_bp)
     return NULL;
 
   if (evpy_add_attribute (breakpoint_event_obj.get (),
-                          "breakpoint",
-                          first_bp) < 0)
+                         "breakpoint",
+                         first_bp) < 0)
     return NULL;
   if (evpy_add_attribute (breakpoint_event_obj.get (),
-                          "breakpoints",
-                          breakpoint_list) < 0)
+                         "breakpoints",
+                         breakpoint_list) < 0)
     return NULL;
 
   return breakpoint_event_obj;
This page took 0.024111 seconds and 4 git commands to generate.