diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-04-21 09:45:30 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-05-30 15:07:26 -0400 |
commit | f6485481002067afc158fe15f62739b050364a64 (patch) | |
tree | 15ee6c04b59dc46e7d03e889e2657e9cce986afa /gdb/interps.h | |
parent | 52d98df7420fa7442befa23cfee28187ed8077ee (diff) | |
download | gdb-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/interps.h')
-rw-r--r-- | gdb/interps.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/interps.h b/gdb/interps.h index 0434efe..7fce025 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -31,6 +31,7 @@ struct ui; class completion_tracker; struct thread_info; struct inferior; +struct so_list; typedef struct interp *(*interp_factory_func) (const char *name); @@ -142,6 +143,9 @@ public: /* Notify the interpreter that the target was resumed. */ virtual void on_target_resumed (ptid_t ptid) {} + /* Notify the interpreter that solib SO has been loaded. */ + virtual void on_solib_loaded (so_list *so) {} + private: /* The memory for this is static, it comes from literal strings (e.g. "cli"). */ const char *m_name; @@ -287,6 +291,9 @@ extern void interps_notify_record_changed (inferior *inf, int started, /* Notify all interpreters that the target was resumed. */ extern void interps_notify_target_resumed (ptid_t ptid); +/* Notify all interpreters that solib SO has been loaded. */ +extern void interps_notify_solib_loaded (so_list *so); + /* well-known interpreters */ #define INTERP_CONSOLE "console" #define INTERP_MI2 "mi2" |