]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/aix-thread.c
gdbsupport, gdb: give names to observers
[thirdparty/binutils-gdb.git] / gdb / aix-thread.c
index fc34210cf9e2e77ad81f35f28a539eba7ae456b2..889cb65fdcdb84af5da9e600f5218e18f4500c05 100644 (file)
@@ -1839,11 +1839,12 @@ void
 _initialize_aix_thread ()
 {
   /* Notice when object files get loaded and unloaded.  */
-  gdb::observers::new_objfile.attach (new_objfile);
+  gdb::observers::new_objfile.attach (new_objfile, "aix-thread");
 
   /* Add ourselves to inferior_created event chain.
      This is needed to enable the thread target on "attach".  */
-  gdb::observers::inferior_created.attach (aix_thread_inferior_created);
+  gdb::observers::inferior_created.attach (aix_thread_inferior_created,
+                                          "aix-thread");
 
   add_setshow_boolean_cmd ("aix-thread", class_maintenance, &debug_aix_thread,
                           _("Set debugging of AIX thread module."),