diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-03-01 20:38:35 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-05-30 15:07:26 -0400 |
commit | 8782926771b1212acb90b944f7402466c998d592 (patch) | |
tree | f46baf46bc4895ecbd7fbcec6b5243f1a0bcc1ab /gdb/interps.h | |
parent | 3f75a984d27da2801a9c4237b2b40917c68d6f19 (diff) | |
download | gdb-8782926771b1212acb90b944f7402466c998d592.zip gdb-8782926771b1212acb90b944f7402466c998d592.tar.gz gdb-8782926771b1212acb90b944f7402466c998d592.tar.bz2 |
gdb: add interp::on_normal_stop method
Same idea as the previous patch, but for the normal_stop event.
Change-Id: I4fc8ca8a51c63829dea390a2b6ce30b77f9fb863
Diffstat (limited to 'gdb/interps.h')
-rw-r--r-- | gdb/interps.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/interps.h b/gdb/interps.h index 4762c4c..dd5a9b7 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -24,6 +24,7 @@ #include "gdbsupport/intrusive_list.h" +struct bpstat; struct ui_out; struct interp; struct ui; @@ -86,6 +87,9 @@ public: SIG. */ virtual void on_signal_received (gdb_signal sig) {} + /* Notify the interpreter that the current inferior has stopped normally. */ + virtual void on_normal_stop (bpstat *bs, int print_frame) {} + private: /* The memory for this is static, it comes from literal strings (e.g. "cli"). */ const char *m_name; @@ -178,6 +182,9 @@ extern void interpreter_completer (struct cmd_list_element *ignore, SIG. */ extern void interps_notify_signal_received (gdb_signal sig); +/* Notify all interpreters that the current inferior has stopped normally. */ +extern void interps_notify_normal_stop (bpstat *bs, int print_frame); + /* well-known interpreters */ #define INTERP_CONSOLE "console" #define INTERP_MI2 "mi2" |