mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
Commit Ilya Golubev's clear_solib() fixes.
This commit is contained in:
parent
93de26c188
commit
2069d78d3c
@ -1,3 +1,11 @@
|
||||
2001-09-13 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
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.
|
||||
|
||||
2001-09-13 Jim Blandy <jimb@redhat.com>
|
||||
|
||||
* monitor.c (monitor_load): Don't delete symtab users, or reset
|
||||
|
@ -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",
|
||||
|
@ -802,6 +802,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",
|
||||
|
@ -730,6 +730,8 @@ clear_solib (void)
|
||||
{
|
||||
struct so_list *so = so_list_head;
|
||||
so_list_head = so->next;
|
||||
if (so->abfd)
|
||||
remove_target_sections (so->abfd);
|
||||
free_so (so);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user