aboutsummaryrefslogtreecommitdiff
path: root/gdb/interps.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-04-20 15:35:18 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-05-30 15:07:26 -0400
commit2e5dbfab563c58b9be34d168e8aaa24878aab38c (patch)
treec4037adde2a345e6d6c189630eb5ff442fd403d3 /gdb/interps.h
parentbf64d1d5bf718859b2687a0a011246b9cbbca9e1 (diff)
downloadbinutils-2e5dbfab563c58b9be34d168e8aaa24878aab38c.zip
binutils-2e5dbfab563c58b9be34d168e8aaa24878aab38c.tar.gz
binutils-2e5dbfab563c58b9be34d168e8aaa24878aab38c.tar.bz2
gdb: add interp::on_no_history method
Same as previous patches, but for no_history. Change-Id: I06930fe7cb4082138c6c5496c5118fe4951c10da
Diffstat (limited to 'gdb/interps.h')
-rw-r--r--gdb/interps.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/interps.h b/gdb/interps.h
index 6c2656d..915a5f7 100644
--- a/gdb/interps.h
+++ b/gdb/interps.h
@@ -98,6 +98,10 @@ public:
status STATUS. */
virtual void on_exited (int status) {}
+ /* Notify the interpreter that the current inferior has stopped reverse
+ execution because there is no more history. */
+ virtual void on_no_history () {}
+
private:
/* The memory for this is static, it comes from literal strings (e.g. "cli"). */
const char *m_name;
@@ -197,6 +201,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 stopped reverse
+ execution because there is no more history. */
+extern void interps_notify_no_history ();
+
/* Notify all interpreters that the current inferior has exited normally with
status STATUS. */
extern void interps_notify_exited (int status);