diff options
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index d32b221..f3cd48f 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -1556,11 +1556,12 @@ _initialize_solib () { solib_data = gdbarch_data_register_pre_init (solib_init); - gdb::observers::free_objfile.attach (remove_user_added_objfile); + gdb::observers::free_objfile.attach (remove_user_added_objfile, + "solib"); gdb::observers::inferior_execd.attach ([] (inferior *inf) { solib_create_inferior_hook (0); - }); + }, "solib"); add_com ("sharedlibrary", class_files, sharedlibrary_command, _("Load shared object library symbols for files matching REGEXP.")); |