diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-07-22 20:51:11 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-07-22 20:51:11 +0000 |
commit | 046ac79fc7a2417eb1e0e00bc496ff51a505d037 (patch) | |
tree | b95a3cdf89ba73dea3a4e5f1a2660f20d28431ec /gdb/solib.c | |
parent | 632a40b341926ceac065d00bf38fab366599ccff (diff) | |
download | gdb-046ac79fc7a2417eb1e0e00bc496ff51a505d037.zip gdb-046ac79fc7a2417eb1e0e00bc496ff51a505d037.tar.gz gdb-046ac79fc7a2417eb1e0e00bc496ff51a505d037.tar.bz2 |
2013-07-22 Doug Evans <dje@google.com>
gdb/
* exec.h (remove_target_sections): Delete arg abfd.
* exec.c (remove_target_sections): Delete arg abfd.
(exec_close): Update call to remove_target_sections.
* solib.c (update_solib_list): Ditto.
(reload_shared_libraries_1): Ditto.
(clear_solib): Ditto, and unconditionally call remove_target_sections.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index c987fe5..fd26687 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -770,7 +770,7 @@ update_solib_list (int from_tty, struct target_ops *target) /* Some targets' section tables might be referring to sections from so->abfd; remove them. */ - remove_target_sections (gdb, gdb->abfd); + remove_target_sections (gdb); free_so (gdb); gdb = *gdb_link; @@ -1151,8 +1151,7 @@ clear_solib (void) so_list_head = so->next; observer_notify_solib_unloaded (so); - if (so->abfd) - remove_target_sections (so, so->abfd); + remove_target_sections (so); free_so (so); } @@ -1276,7 +1275,7 @@ reload_shared_libraries_1 (int from_tty) if (so->objfile && ! (so->objfile->flags & OBJF_USERLOADED) && !solib_used (so)) free_objfile (so->objfile); - remove_target_sections (so, so->abfd); + remove_target_sections (so); clear_so (so); } |