summaryrefslogtreecommitdiff
path: root/gdb/progspace.h
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/progspace.h
parenta42d7dd873b1fc989b25c2fc793d6d084c6af907 (diff)
downloadbinutils-gdb-e39fb97114f28dbc0f38a9851437437bfc5c43a0.tar.gz
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/progspace.h')
-rw-r--r--gdb/progspace.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/progspace.h b/gdb/progspace.h
index e719cee57d0..22805d74f37 100644
--- a/gdb/progspace.h
+++ b/gdb/progspace.h
@@ -288,6 +288,11 @@ struct program_space
ebfd = std::move (abfd);
}
+ /* Reset saved solib data at the start of an solib event. This lets
+ us properly collect the data when calling solib_add, so it can then
+ later be printed. */
+ void clear_solib_cache ();
+
/* Unique ID number. */
int num = 0;
@@ -435,11 +440,6 @@ extern int address_space_num (struct address_space *aspace);
mappings. */
extern void update_address_spaces (void);
-/* Reset saved solib data at the start of an solib event. This lets
- us properly collect the data when calling solib_add, so it can then
- later be printed. */
-extern void clear_program_space_solib_cache (struct program_space *);
-
/* Keep a registry of per-pspace data-pointers required by other GDB
modules. */