aboutsummaryrefslogtreecommitdiff
path: root/gdb/observable.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-09-27 16:39:36 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-10-02 11:53:21 -0400
commitbd93891c9ae1adda01631459eb8da8309a2f9d60 (patch)
treedcbc56b5c79270ca82f2ced23a5b89b666582747 /gdb/observable.h
parentdc63d5682e48ab64724a2da2ee803cd13bf5f0c0 (diff)
downloadfsf-binutils-gdb-bd93891c9ae1adda01631459eb8da8309a2f9d60.zip
fsf-binutils-gdb-bd93891c9ae1adda01631459eb8da8309a2f9d60.tar.gz
fsf-binutils-gdb-bd93891c9ae1adda01631459eb8da8309a2f9d60.tar.bz2
gdb: remove solib::pspace field
This backlink is not necessary, we always know the program space from the context. Pass it down the solib_unloaded observer. Change-Id: I45a503472dc791f517558b8141901472634e0556 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/observable.h')
-rw-r--r--gdb/observable.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/observable.h b/gdb/observable.h
index 464d0b7..62882ac 100644
--- a/gdb/observable.h
+++ b/gdb/observable.h
@@ -101,10 +101,11 @@ extern observable<inferior */* parent_inf */, inferior */* child_inf */,
haven't been loaded yet. */
extern observable<struct so_list */* solib */> solib_loaded;
-/* The shared library specified by SOLIB has been unloaded. Note
- that when gdb calls this observer, the library's symbols have not
+/* The shared library SOLIB has been unloaded from program space PSPACE.
+ Note when gdb calls this observer, the library's symbols have not
been unloaded yet, and thus are still available. */
-extern observable<struct so_list */* solib */> solib_unloaded;
+extern observable<struct program_space */* pspace */, struct so_list */* solib */>
+ solib_unloaded;
/* The symbol file specified by OBJFILE has been loaded. Called
with OBJFILE equal to NULL to indicate previously loaded symbol