From 2646bfa763e890c41474206344e3b02e1648c765 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 2 May 2023 11:35:36 -0400 Subject: gdb: add interp::on_inferior_removed method Same idea as previous patches, but for inferior_removed. Change-Id: I7971840bbbdcfabf77e2ded7584830c9dfdd10d0 --- gdb/interps.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/interps.h') 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" -- cgit v1.1