Convert observers to C++
[deliverable/binutils-gdb.git] / gdb / break-catch-syscall.c
index 42d49387e281c85ba0660ef033b7cc580a34f62b..2fb5e6157bd24fcc6d34cb620ad104c4e717adf4 100644 (file)
@@ -27,7 +27,7 @@
 #include "mi/mi-common.h"
 #include "valprint.h"
 #include "arch-utils.h"
-#include "observer.h"
+#include "observable.h"
 #include "xml-syscall.h"
 
 /* An instance of this type is used to represent a syscall catchpoint.
@@ -632,7 +632,7 @@ _initialize_break_catch_syscall (void)
 {
   initialize_syscall_catchpoint_ops ();
 
-  observer_attach_inferior_exit (clear_syscall_counts);
+  gdb::observers::inferior_exit.attach (clear_syscall_counts);
   catch_syscall_inferior_data
     = register_inferior_data_with_cleanup (NULL,
                                           catch_syscall_inferior_data_cleanup);
This page took 0.02497 seconds and 4 git commands to generate.