aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.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/infcmd.c
parent89dc60d9570ff8f0f9757a6b0a8acd7204667c66 (diff)
downloadfsf-binutils-gdb-b8c9d0de904198f73a39aa6bf9b27b4bc015e0f8.zip
fsf-binutils-gdb-b8c9d0de904198f73a39aa6bf9b27b4bc015e0f8.tar.gz
fsf-binutils-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/infcmd.c')
-rw-r--r--gdb/infcmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 5738bf0..4ed55f1 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -2827,7 +2827,7 @@ detach_command (const char *args, int from_tty)
/* If the solist is global across inferiors, don't clear it when we
detach from a single inferior. */
if (!gdbarch_has_global_solist (inf->arch ()))
- no_shared_libraries ();
+ no_shared_libraries (inf->pspace);
if (deprecated_detach_hook)
deprecated_detach_hook ();
@@ -2853,7 +2853,7 @@ disconnect_command (const char *args, int from_tty)
query_if_trace_running (from_tty);
disconnect_tracing ();
target_disconnect (args, from_tty);
- no_shared_libraries ();
+ no_shared_libraries (current_program_space);
init_thread_list ();
update_previous_thread ();
if (deprecated_detach_hook)