forked from Imagelibrary/binutils-gdb
From Ilya Golubev <gin@mo.msk.ru>:
* solib.c (clear_solib): Call `remove_target_sections' to fix stale pointers in `struct target_ops'. * irix5-nat.c (clear_solib): Likewise. * osfsolib.c (clear_solib): Likewise.
This commit is contained in:
@@ -1061,6 +1061,7 @@ clear_solib (void)
|
||||
}
|
||||
if (so_list_head->abfd)
|
||||
{
|
||||
remove_target_sections (so_list_head->abfd);
|
||||
bfd_filename = bfd_get_filename (so_list_head->abfd);
|
||||
if (!bfd_close (so_list_head->abfd))
|
||||
warning ("cannot close \"%s\": %s",
|
||||
|
||||
Reference in New Issue
Block a user