From 4db41a0a1097860d1e0d3b8ecf6c01dbbb65ba5a Mon Sep 17 00:00:00 2001 From: Philipp Rudo Date: Fri, 21 Oct 2016 12:32:52 +0200 Subject: Delete target_so_ops->special_symbol_handling hook No one(!) actually implements this hook. So simply delete it. gdb/ChangeLog: * solist.h (struct target_so_ops): Delete special_symbol_handling hook. * solib.c (solib_add, reload_shared_libraries): Adjust. * solib-aix.c (solib_aix_special_symbol_handling): Delete (_initialize_solib_aix): Adjust * solib-darwin.c (darwin_special_symbol_handling): Delete (_initialize_darwin_solib): Adjust * solib-dsbt.c (dsbt_special_symbol_handling): Delete (_initialize_dsbt_solib): Adjust * solib-frv.c (frv_special_symbol_handling): Delete (_initialize_frv_solib): Adjust * solib-svr4.c (svr4_special_symbol_handling): Delete (_initialize_svr4_solib): Adjust * solib-target.c (solib_target_special_symbol_handling): Delete (_initialize_solib_target): Adjust --- gdb/solib.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'gdb/solib.c') diff --git a/gdb/solib.c b/gdb/solib.c index 2235505..b8c2b42 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -1038,13 +1038,9 @@ solib_add (const char *pattern, int from_tty, if (loaded_any_symbols) { - const struct target_so_ops *ops = solib_ops (target_gdbarch ()); - /* Getting new symbols may change our opinion about what is frameless. */ reinit_frame_cache (); - - ops->special_symbol_handling (); } } } @@ -1468,8 +1464,6 @@ reload_shared_libraries (char *ignored, int from_tty, structures that are now freed. Also, getting new symbols may change our opinion about what is frameless. */ reinit_frame_cache (); - - ops->special_symbol_handling (); } /* Wrapper for reload_shared_libraries that replaces "remote:" -- cgit v1.1