aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-svr4-linux.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2025-07-21 11:38:30 -0400
committerSimon Marchi <simon.marchi@efficios.com>2025-08-22 10:45:47 -0400
commit0dd741f753c7f93dd25afe621cb626cce6ed0284 (patch)
tree3fba84ed8acb6a8b04de2d5b438a4b085cd1e052 /gdb/solib-svr4-linux.c
parent8a729432af7fe9e9f07036e2d0a5c66439de8bf9 (diff)
downloadgdb-0dd741f753c7f93dd25afe621cb626cce6ed0284.zip
gdb-0dd741f753c7f93dd25afe621cb626cce6ed0284.tar.gz
gdb-0dd741f753c7f93dd25afe621cb626cce6ed0284.tar.bz2
gdb/solib: save program space in solib_ops
In some subsequent patches, solib_ops methods will need to access the program space they were created for. We currently access the program space using "current_program_space", but it would better to remember the program space at construction time instead. Change-Id: Icf2809435a23c47ddeeb75e603863b201eff2e58 Reviewed-By: Guinevere Larsen <guinevere@redhat.com>
Diffstat (limited to 'gdb/solib-svr4-linux.c')
-rw-r--r--gdb/solib-svr4-linux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/solib-svr4-linux.c b/gdb/solib-svr4-linux.c
index fd86cf0..fe82e5d 100644
--- a/gdb/solib-svr4-linux.c
+++ b/gdb/solib-svr4-linux.c
@@ -22,9 +22,9 @@
/* See solib-svr4-linux.h. */
solib_ops_up
-make_linux_ilp32_svr4_solib_ops ()
+make_linux_ilp32_svr4_solib_ops (program_space *pspace)
{
- return std::make_unique<linux_ilp32_svr4_solib_ops> ();
+ return std::make_unique<linux_ilp32_svr4_solib_ops> (pspace);
}
/* See solib-svr4-linux.h. */
@@ -61,9 +61,9 @@ linux_ilp32_svr4_solib_ops::fetch_link_map_offsets () const
/* See solib-svr4-linux.h. */
solib_ops_up
-make_linux_lp64_svr4_solib_ops ()
+make_linux_lp64_svr4_solib_ops (program_space *pspace)
{
- return std::make_unique<linux_lp64_svr4_solib_ops> ();
+ return std::make_unique<linux_lp64_svr4_solib_ops> (pspace);
}
/* See linux-tdep.h. */