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 | 8e7af8434581e325366c8ec4a30f33e8e1794310 (patch) | |
tree | f2073eea71cd755cc2bc51dc0520e9e5d23a0d3e /gdb/interps.h | |
parent | 30e7e0a917b44cbef439cb9c52fa41d21a5f8e44 (diff) | |
download | gdb-8e7af8434581e325366c8ec4a30f33e8e1794310.zip gdb-8e7af8434581e325366c8ec4a30f33e8e1794310.tar.gz gdb-8e7af8434581e325366c8ec4a30f33e8e1794310.tar.bz2 |
gdb: add interp::on_thread_exited method
Same idea as previous patches, but for thread_exited.
Change-Id: I4be974cbe58cf635453fef503c2d77c82522cbd9
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 05ea91e..cd09938 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -118,6 +118,9 @@ public: /* Notify the interpreter that thread T has been created. */ virtual void on_new_thread (thread_info *t) {} + /* Notify the interpreter that thread T has exited. */ + virtual void on_thread_exited (thread_info *, int silent) {} + private: /* The memory for this is static, it comes from literal strings (e.g. "cli"). */ const char *m_name; @@ -232,6 +235,9 @@ extern void interps_notify_user_selected_context_changed /* Notify all interpreters that thread T has been created. */ extern void interps_notify_new_thread (thread_info *t); +/* Notify all interpreters that thread T has exited. */ +extern void interps_notify_thread_exited (thread_info *t, int silent); + /* well-known interpreters */ #define INTERP_CONSOLE "console" #define INTERP_MI2 "mi2" |