Clear the stale source cache when re-reading symbols.
PR gdb/25126
* symfile.c (reread_symbols): Call forget_cached_source_info to
clear the stale source cache.
+2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gdb/25126
+ * symfile.c (reread_symbols): Call forget_cached_source_info to
+ clear the stale source cache.
+
2019-10-24 Christian Biesinger <cbiesinger@google.com>
* configure: Regenerate.
automatically recreated by sym_read. */
free_objfile_separate_debug (objfile);
+ /* Clear the stale source cache. */
+ forget_cached_source_info ();
+
/* Remove any references to this objfile in the global
value lists. */
preserve_values (objfile);