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/infrun.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/infrun.c')
-rw-r--r-- | gdb/infrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index b2dfd0c..06b454b 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1317,7 +1317,7 @@ follow_exec (ptid_t ptid, const char *exec_file_target) /* Also, loading a symbol file below may trigger symbol lookups, and we don't want those to be satisfied by the libraries of the previous incarnation of this process. */ - no_shared_libraries (); + no_shared_libraries (current_program_space); inferior *execing_inferior = current_inferior (); inferior *following_inferior; |