Call forget_cached_source_info to clear the stale source cache
[deliverable/binutils-gdb.git] / gdb / symfile.c
index f74c6de5962536c41d90bd5a5adc8223e31e9702..d2ed1ccacdfa5a2a59ffeb5a3353dd6052ee1698 100644 (file)
@@ -2518,6 +2518,9 @@ reread_symbols (void)
             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);
This page took 0.025148 seconds and 4 git commands to generate.