diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-07-11 12:39:35 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-07-15 14:34:12 -0400 |
commit | b8c9d0de904198f73a39aa6bf9b27b4bc015e0f8 (patch) | |
tree | 4d6f9ca694a55cd2c1ad7c986e2d9e56d83971c6 /gdb/symfile.c | |
parent | 89dc60d9570ff8f0f9757a6b0a8acd7204667c66 (diff) | |
download | gdb-b8c9d0de904198f73a39aa6bf9b27b4bc015e0f8.zip gdb-b8c9d0de904198f73a39aa6bf9b27b4bc015e0f8.tar.gz gdb-b8c9d0de904198f73a39aa6bf9b27b4bc015e0f8.tar.bz2 |
gdb: pass program space to no_shared_libraries
Make the current program space reference bubble up one level. Pass
`current_program_space` everywhere, except in some cases where we can
get the pspace another way, and it's relatively obvious that it's the
same as the current program space.
Change-Id: Id86b79f1e44f92a398f49d137d57457174dfa96d
Approved-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 7c28328..6b72221 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1209,7 +1209,7 @@ symbol_file_clear (int from_tty) /* solib descriptors may have handles to objfiles. Wipe them before their objfiles get stale by free_all_objfiles. */ - no_shared_libraries (); + no_shared_libraries (current_program_space); current_program_space->free_all_objfiles (); |