From bf64d1d5bf718859b2687a0a011246b9cbbca9e1 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 20 Apr 2023 14:46:58 -0400 Subject: gdb: add interp::on_exited method Same as previous patch, but for exited. Remove the exited observable, since nothing uses it anymore, and we don't have anything coming that will use it. Change-Id: I358cbea0159af56752dfee7510d6a86191e722bb --- gdb/interps.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gdb/interps.h') diff --git a/gdb/interps.h b/gdb/interps.h index 752f2e8..6c2656d 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -94,6 +94,10 @@ public: /* Notify the interpreter that the current inferior has stopped normally. */ virtual void on_normal_stop (bpstat *bs, int print_frame) {} + /* Notify the intepreter that the current inferior has exited normally with + status STATUS. */ + virtual void on_exited (int status) {} + private: /* The memory for this is static, it comes from literal strings (e.g. "cli"). */ const char *m_name; @@ -193,6 +197,10 @@ extern void interps_notify_signal_exited (gdb_signal sig); /* Notify all interpreters that the current inferior has stopped normally. */ extern void interps_notify_normal_stop (bpstat *bs, int print_frame); +/* Notify all interpreters that the current inferior has exited normally with + status STATUS. */ +extern void interps_notify_exited (int status); + /* well-known interpreters */ #define INTERP_CONSOLE "console" #define INTERP_MI2 "mi2" -- cgit v1.1