From 581b34c2a153d36876ec92bbcd1820ac1d99f83b Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 2 Oct 2023 14:46:18 -0400 Subject: gdb: add program_space parameter to target_so_ops::clear_solib The clear_solib is implicitly meant to clear the resources associated to the current program space (that's what the solib implementations that actually support multi-program-space / multi-inferior do). Make that explicit by adding a program_space parameter and pass down current_program_space in call sites. The implementation of the clear_solib callbacks is fairly simple, I don't think any of them rely on global state other than accessing current_program_space. Change-Id: I8d0cc4db7b4f8db8d7452879c0c62db03269bf46 Approved-By: Pedro Alves Reviewed-By: Reviewed-By: Lancelot Six --- gdb/solib-frv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/solib-frv.c') diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c index d4e84a1..c61ed79 100644 --- a/gdb/solib-frv.c +++ b/gdb/solib-frv.c @@ -806,7 +806,7 @@ frv_solib_create_inferior_hook (int from_tty) } static void -frv_clear_solib (void) +frv_clear_solib (program_space *pspace) { lm_base_cache = 0; enable_break2_done = 0; -- cgit v1.1