Use unique_xmalloc_ptr in fixup_go_packaging
[deliverable/binutils-gdb.git] / gdb / guile / scm-breakpoint.c
index a75daa000196dcb48ca01c1b5901fc2ee3f549ae..96b6ca91f8da8a0fbc18638fbbd0d90bfbd2dd46 100644 (file)
@@ -1,6 +1,6 @@
 /* Scheme interface to breakpoints.
 
-   Copyright (C) 2008-2019 Free Software Foundation, Inc.
+   Copyright (C) 2008-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -437,13 +437,15 @@ gdbscm_register_breakpoint_x (SCM self)
        {
        case bp_breakpoint:
          {
+           const breakpoint_ops *ops =
+             breakpoint_ops_for_event_location (eloc.get (), false);
            create_breakpoint (get_current_arch (),
                               eloc.get (), NULL, -1, NULL,
                               0,
                               0, bp_breakpoint,
                               0,
                               AUTO_BOOLEAN_TRUE,
-                              &bkpt_breakpoint_ops,
+                              ops,
                               0, 1, internal, 0);
            break;
          }
This page took 0.02439 seconds and 4 git commands to generate.