aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-10-03 22:20:16 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-10-05 13:20:50 -0400
commit6114d6507853f3e29a09bd7f4ea494b542d9d595 (patch)
treeaee527d750c0a7cff18ac1338c140972ce4fd2ff /gdb/ada-lang.c
parent1b28c0f488bb84c8cc9f680afa9680dc0b0e2b3d (diff)
downloadgdb-6114d6507853f3e29a09bd7f4ea494b542d9d595.zip
gdb-6114d6507853f3e29a09bd7f4ea494b542d9d595.tar.gz
gdb-6114d6507853f3e29a09bd7f4ea494b542d9d595.tar.bz2
gdb: add program_space parameter to ada_clear_symbol_cache
Make the references to current_program_space bubble up one level. Change-Id: I82acab5628c30f6535d52aa32ce2c1d0375cbeed Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 53d53e0..4dc4055 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -4673,9 +4673,9 @@ make_array_descriptor (struct type *type, struct value *arr)
/* Clear all entries from the symbol cache. */
static void
-ada_clear_symbol_cache ()
+ada_clear_symbol_cache (program_space *pspace)
{
- ada_pspace_data_handle.clear (current_program_space);
+ ada_pspace_data_handle.clear (pspace);
}
/* Search the symbol cache for an entry matching NAME and DOMAIN.
@@ -13884,7 +13884,7 @@ static struct cmd_list_element *show_ada_list;
static void
ada_new_objfile_observer (struct objfile *objfile)
{
- ada_clear_symbol_cache ();
+ ada_clear_symbol_cache (current_program_space);
}
/* This module's 'free_objfile' observer. */
@@ -13892,7 +13892,7 @@ ada_new_objfile_observer (struct objfile *objfile)
static void
ada_free_objfile_observer (struct objfile *objfile)
{
- ada_clear_symbol_cache ();
+ ada_clear_symbol_cache (current_program_space);
}
/* Charsets known to GNAT. */