aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-07-11 12:39:35 -0400
committerSimon Marchi <simon.marchi@efficios.com>2024-07-15 14:34:12 -0400
commitb8c9d0de904198f73a39aa6bf9b27b4bc015e0f8 (patch)
tree4d6f9ca694a55cd2c1ad7c986e2d9e56d83971c6 /gdb/target.c
parent89dc60d9570ff8f0f9757a6b0a8acd7204667c66 (diff)
downloadgdb-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/target.c')
-rw-r--r--gdb/target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target.c b/gdb/target.c
index 0ca7087..1802703 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -2452,7 +2452,7 @@ target_pre_inferior ()
memory regions and features. */
if (!gdbarch_has_global_solist (current_inferior ()->arch ()))
{
- no_shared_libraries ();
+ no_shared_libraries (current_program_space);
invalidate_target_mem_regions ();