diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-04-20 14:46:58 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-05-30 15:07:26 -0400 |
commit | bf64d1d5bf718859b2687a0a011246b9cbbca9e1 (patch) | |
tree | 9f77aeb905a2235897e26355aa1cce894a7c0d6c /gdb/interps.h | |
parent | d6bd2ef5f4c2027a68810f4a9dbe871b61e819ab (diff) | |
download | binutils-bf64d1d5bf718859b2687a0a011246b9cbbca9e1.zip binutils-bf64d1d5bf718859b2687a0a011246b9cbbca9e1.tar.gz binutils-bf64d1d5bf718859b2687a0a011246b9cbbca9e1.tar.bz2 |
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
Diffstat (limited to 'gdb/interps.h')
-rw-r--r-- | gdb/interps.h | 8 |
1 files changed, 8 insertions, 0 deletions
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" |