diff options
author | Tom Tromey <tromey@adacore.com> | 2024-06-05 09:06:30 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-06-24 09:11:30 -0600 |
commit | f59be2ed3946b69a969c65dd7093b4e865bba003 (patch) | |
tree | 35da0da91ac3d4e01849b3e57572cfac60628db9 /gdb/symtab.c | |
parent | 440897605540c0703c29a84450ab3e5eccda91bd (diff) | |
download | binutils-f59be2ed3946b69a969c65dd7093b4e865bba003.zip binutils-f59be2ed3946b69a969c65dd7093b4e865bba003.tar.gz binutils-f59be2ed3946b69a969c65dd7093b4e865bba003.tar.bz2 |
Add compunit_symtab::forget_cached_source_info
It seemed cleaner to me for compunit_symtab to have a
forget_cached_source_info method, then for the objfile to know how to
do this.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 4888ebc..39a6915 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -485,6 +485,15 @@ compunit_symtab::language () const return symtab->language (); } +/* See symtab.h. */ + +void +compunit_symtab::forget_cached_source_info () +{ + for (symtab *s : filetabs ()) + s->release_fullname (); +} + /* The relocated address of the minimal symbol, using the section offsets from OBJFILE. */ |