Avoid rereading shared libraries that haven't changed.
authorPedro Alves <palves@redhat.com>
Wed, 14 Apr 2010 23:20:27 +0000 (23:20 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 14 Apr 2010 23:20:27 +0000 (23:20 +0000)
commita86988f21aff8000607ee2f071eea3161f445212
treefe61f873a3d5d6106a172b0c9db6825338aea81f
parent589390d6ffbcc8aa63ab7481dbde1696726a05b7
Avoid rereading shared libraries that haven't changed.

* solib.c (free_so_symbols): New function, from ...
(free_so): ... here.  Call it.
(solib_read_symbols): Don't warn here if symbols have already been
loaded.
(solib_add): Warn here instead, if a pattern was specified.
(reload_shared_libraries_1): New.
(reload_shared_libraries): Rewrite to not fetch the library list.
gdb/ChangeLog
gdb/solib.c