diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-04-27 20:07:01 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-04-27 20:07:01 +0000 |
commit | 0133421afd5a6d8633c1fbbdb77af734960d7c73 (patch) | |
tree | ccd514a96cd96965544dea692f048d90e1ebf3d3 /gdb/objfiles.c | |
parent | 1d2ca237d83678be5c4782309b1c820636c9f60a (diff) | |
download | gdb-0133421afd5a6d8633c1fbbdb77af734960d7c73.zip gdb-0133421afd5a6d8633c1fbbdb77af734960d7c73.tar.gz gdb-0133421afd5a6d8633c1fbbdb77af734960d7c73.tar.bz2 |
gdb/
* objfiles.c: Include solist.h.
(free_all_objfiles): New variable so. Check stale solist objfiles.
* symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
and no_shared_libraries.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 5be5c6a..cacdaba 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -53,6 +53,7 @@ #include "observer.h" #include "complaints.h" #include "psymtab.h" +#include "solist.h" /* Prototypes for local functions */ @@ -688,6 +689,11 @@ void free_all_objfiles (void) { struct objfile *objfile, *temp; + struct so_list *so; + + /* Any objfile referencewould become stale. */ + for (so = master_so_list (); so; so = so->next) + gdb_assert (so->objfile == NULL); ALL_OBJFILES_SAFE (objfile, temp) { |