aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-04-21 09:45:30 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-05-30 15:07:26 -0400
commitf6485481002067afc158fe15f62739b050364a64 (patch)
tree15ee6c04b59dc46e7d03e889e2657e9cce986afa /gdb/solib.c
parent52d98df7420fa7442befa23cfee28187ed8077ee (diff)
downloadgdb-f6485481002067afc158fe15f62739b050364a64.zip
gdb-f6485481002067afc158fe15f62739b050364a64.tar.gz
gdb-f6485481002067afc158fe15f62739b050364a64.tar.bz2
gdb: add interp::on_solib_loaded method
Same idea as previous patches, but for solib_loaded Change-Id: I85edb0a4b377f4b2c39ffccf31cb75f38bae0f55
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index 1614783..fc23d28 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -760,6 +760,15 @@ solib_used (const struct so_list *const known)
return false;
}
+/* Notify interpreters and observers that solib SO has been loaded. */
+
+static void
+notify_solib_loaded (so_list *so)
+{
+ interps_notify_solib_loaded (so);
+ gdb::observers::solib_loaded.notify (so);
+}
+
/* See solib.h. */
void
@@ -920,7 +929,7 @@ update_solib_list (int from_tty)
/* Notify any observer that the shared object has been
loaded now that we've added it to GDB's tables. */
- gdb::observers::solib_loaded.notify (i);
+ notify_solib_loaded (i);
}
/* If a library was not found, issue an appropriate warning