gdb: Add aliases for read_core_file_mappings callbacks
[binutils-gdb.git] / gdb / agent.c
index ffcefeb674885de11917ae8bda21a6b6bc7fc2b9..5e52865b3788bd7b92bcf458aed9f1f9324638d2 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2012-2020 Free Software Foundation, Inc.
+/* Copyright (C) 2012-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -78,7 +78,8 @@ void _initialize_agent ();
 void
 _initialize_agent ()
 {
-  gdb::observers::new_objfile.attach (agent_new_objfile);
+  gdb::observers::new_objfile.attach (agent_new_objfile,
+                                     "agent");
 
   add_setshow_enum_cmd ("agent", class_run,
                        can_use_agent_enum,