diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-05-02 11:35:36 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-05-30 15:07:26 -0400 |
commit | 2646bfa763e890c41474206344e3b02e1648c765 (patch) | |
tree | ab2f68a06346d030d75e50627f64001f9d1ae9f7 /gdb/interps.h | |
parent | d38086cce9ab3d1c0acd48dd89fe5721caa08fed (diff) | |
download | gdb-2646bfa763e890c41474206344e3b02e1648c765.zip gdb-2646bfa763e890c41474206344e3b02e1648c765.tar.gz gdb-2646bfa763e890c41474206344e3b02e1648c765.tar.bz2 |
gdb: add interp::on_inferior_removed method
Same idea as previous patches, but for inferior_removed.
Change-Id: I7971840bbbdcfabf77e2ded7584830c9dfdd10d0
Diffstat (limited to 'gdb/interps.h')
-rw-r--r-- | gdb/interps.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/interps.h b/gdb/interps.h index b1aee5d..ad351bb 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -131,6 +131,9 @@ public: /* Notify the interpreter that inferior INF exited or was detached. */ virtual void on_inferior_disappeared (inferior *inf) {} + /* Notify the interpreter that inferior INF was removed. */ + virtual void on_inferior_removed (inferior *inf) {} + private: /* The memory for this is static, it comes from literal strings (e.g. "cli"). */ const char *m_name; @@ -257,6 +260,9 @@ extern void interps_notify_inferior_appeared (inferior *inf); /* Notify all interpreters that inferior INF exited or was detached. */ extern void interps_notify_inferior_disappeared (inferior *inf); +/* Notify all interpreters that inferior INF was removed. */ +extern void interps_notify_inferior_removed (inferior *inf); + /* well-known interpreters */ #define INTERP_CONSOLE "console" #define INTERP_MI2 "mi2" |