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.
This commit is contained in:
parent
a42d7dd873
commit
e39fb97114
4 changed files with 20 additions and 10 deletions
|
@ -154,7 +154,6 @@ program_space::~program_space ()
|
|||
clear_symtab_users (SYMFILE_DEFER_BP_RESET);
|
||||
if (!gdbarch_has_shared_address_space (target_gdbarch ()))
|
||||
free_address_space (this->aspace);
|
||||
clear_program_space_solib_cache (this);
|
||||
/* Discard any data modules have associated with the PSPACE. */
|
||||
program_space_free_data (this);
|
||||
}
|
||||
|
@ -448,10 +447,10 @@ update_address_spaces (void)
|
|||
/* See progspace.h. */
|
||||
|
||||
void
|
||||
clear_program_space_solib_cache (struct program_space *pspace)
|
||||
program_space::clear_solib_cache ()
|
||||
{
|
||||
pspace->added_solibs.clear ();
|
||||
pspace->deleted_solibs.clear ();
|
||||
added_solibs.clear ();
|
||||
deleted_solibs.clear ();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue