Call forget_cached_source_info to clear the stale source cache
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 24 Oct 2019 22:43:21 +0000 (15:43 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 24 Oct 2019 22:43:21 +0000 (15:43 -0700)
commit7b71fc971bd31b27cce8b883007ad467a7567499
treebd628e98eaeb29324dba80a541268d1928d28271
parentcbb5a2ea493d0cbe49defc3d45ebe3b7e2728a51
Call forget_cached_source_info to clear the stale source cache

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.
gdb/ChangeLog
gdb/symfile.c