aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-10-29 15:04:33 -0600
committerTom Tromey <tom@tromey.com>2020-10-29 15:04:38 -0600
commite39fb97114f28dbc0f38a9851437437bfc5c43a0 (patch)
tree1fb7f93dd50e73b398ae35e170bb36dc9a41a61a /gdb/solib.c
parenta42d7dd873b1fc989b25c2fc793d6d084c6af907 (diff)
downloadgdb-e39fb97114f28dbc0f38a9851437437bfc5c43a0.zip
gdb-e39fb97114f28dbc0f38a9851437437bfc5c43a0.tar.gz
gdb-e39fb97114f28dbc0f38a9851437437bfc5c43a0.tar.bz2
Change clear_program_space_solib_cache to method on program_space
This changes clear_program_space_solib_cache to be a method on program_space. Also, it removes a call to this function from the program_space destructor, as that is not necessary. gdb/ChangeLog 2020-10-29 Tom Tromey <tom@tromey.com> * progspace.c (program_space::~program_space): Don't call clear_program_space_solib_cache. (program_space::clear_solib_cache): Rename from clear_solib_cache. * solib.c (handle_solib_event): Update. * progspace.h (struct program_space) <clear_solib_cache>: New method. (clear_program_space_solib_cache): Don't declare.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index 9df4eca..baa1801 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -1252,7 +1252,7 @@ handle_solib_event (void)
if (ops->handle_event != NULL)
ops->handle_event ();
- clear_program_space_solib_cache (current_inferior ()->pspace);
+ current_inferior ()->pspace->clear_solib_cache ();
/* Check for any newly added shared libraries if we're supposed to
be adding them automatically. Switch terminal for any messages