This patch changes "maint flush symbol-cache" to also flush the
Ada-specific symbol cache. This can be helpful when working on the
Ada code.
Approved-By: Tom de Vries <tdevries@suse.de>
even in this case, some expensive name-based symbol searches are still
sometimes necessary - to find an XVZ variable, mostly. */
-/* Clear all entries from the symbol cache. */
+/* See ada-lang.h. */
-static void
+void
ada_clear_symbol_cache (program_space *pspace)
{
ada_pspace_data_handle.clear (pspace);
extern struct type *ada_index_type (struct type *type, int n,
const char *name);
+/* Clear the Ada symbol cache. */
+
+extern void ada_clear_symbol_cache (program_space *pspace);
+
#endif
static void
symbol_cache_flush (struct program_space *pspace)
{
+ ada_clear_symbol_cache (pspace);
struct symbol_cache *cache = symbol_cache_key.get (pspace);
int pass;