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 | 0c613e170e60f673cd47b23a7052b19b128469c5 (patch) | |
tree | bcf6872d90c5ed20a9890d108eae6ef3f9ec22b6 /gdb/interps.h | |
parent | 023c6d45d793b729b58968a50dee607e8b30a4d0 (diff) | |
download | gdb-0c613e170e60f673cd47b23a7052b19b128469c5.zip gdb-0c613e170e60f673cd47b23a7052b19b128469c5.tar.gz gdb-0c613e170e60f673cd47b23a7052b19b128469c5.tar.bz2 |
gdb: add interp::on_inferior_appeared method
Same idea as previous patches, but for inferior_appeared.
Change-Id: Ibe4feba34274549a886b1dfb5b3f8d59ae79e1b5
Diffstat (limited to 'gdb/interps.h')
-rw-r--r-- | gdb/interps.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/interps.h b/gdb/interps.h index 0c73a1a..09edaae 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -122,9 +122,12 @@ public: /* Notify the interpreter that thread T has exited. */ virtual void on_thread_exited (thread_info *, int silent) {} - /* Notify the intepreter that inferior INF was added. */ + /* Notify the interpreter that inferior INF was added. */ virtual void on_inferior_added (inferior *inf) {} + /* Notify the interpreter that inferior INF was started or attached. */ + virtual void on_inferior_appeared (inferior *inf) {} + private: /* The memory for this is static, it comes from literal strings (e.g. "cli"). */ const char *m_name; @@ -242,9 +245,12 @@ 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); -/* Notify all intepreters that inferior INF was added. */ +/* Notify all interpreters that inferior INF was added. */ extern void interps_notify_inferior_added (inferior *inf); +/* Notify all interpreters that inferior INF was started or attached. */ +extern void interps_notify_inferior_appeared (inferior *inf); + /* well-known interpreters */ #define INTERP_CONSOLE "console" #define INTERP_MI2 "mi2" |