aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-06-05 09:06:30 -0600
committerTom Tromey <tromey@adacore.com>2024-06-24 09:11:30 -0600
commitf59be2ed3946b69a969c65dd7093b4e865bba003 (patch)
tree35da0da91ac3d4e01849b3e57572cfac60628db9 /gdb/symtab.h
parent440897605540c0703c29a84450ab3e5eccda91bd (diff)
downloadgdb-f59be2ed3946b69a969c65dd7093b4e865bba003.zip
gdb-f59be2ed3946b69a969c65dd7093b4e865bba003.tar.gz
gdb-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.h')
-rw-r--r--gdb/symtab.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 19bb697..d0b599f 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1965,6 +1965,9 @@ struct compunit_symtab
/* Return the language of this compunit_symtab. */
enum language language () const;
+ /* Clear any cached source file names. */
+ void forget_cached_source_info ();
+
/* Unordered chain of all compunit symtabs of this objfile. */
struct compunit_symtab *next;