diff options
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 19ae294..39df4e3 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -48,6 +48,7 @@ #include "readline/readline.h" #include "gdb_assert.h" #include "block.h" +#include "varobj.h" #include <sys/types.h> #include <fcntl.h> @@ -573,7 +574,7 @@ syms_from_objfile (struct objfile *objfile, We no longer warn if the lowest section is not a text segment (as happens for the PA64 port. */ - if (!mainline && addrs && addrs->other[0].name) + if (/*!mainline &&*/ addrs && addrs->other[0].name) { asection *lower_sect; asection *sect; @@ -960,6 +961,10 @@ symbol_file_clear (int from_tty) && !query ("Discard symbol table from `%s'? ", symfile_objfile->name)) error ("Not confirmed."); +#ifdef CLEAR_SOLIB + CLEAR_SOLIB (); +#endif + free_all_objfiles (); /* solib descriptors may have handles to objfiles. Since their @@ -1957,6 +1962,8 @@ reread_symbols (void) /* Discard cleanups as symbol reading was successful. */ discard_cleanups (old_cleanups); + init_entry_point_info (objfile); + /* If the mtime has changed between the time we set new_modtime and now, we *want* this to be out of date, so don't call stat again now. */ @@ -2312,6 +2319,7 @@ clear_symtab_users (void) clear_pc_function_cache (); if (target_new_objfile_hook) target_new_objfile_hook (NULL); + varobj_refresh(); } static void |