aboutsummaryrefslogtreecommitdiff
path: root/gdb/interps.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-04-28 14:55:18 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-05-30 15:07:26 -0400
commit2736b77153629619fe75071356e16d9db51606ff (patch)
tree0fb4dded5c12a31a6ede897d0cf8b2ed4a30a616 /gdb/interps.h
parentc3d321de3f35dc67d7eb0826e6cc8bc1f22a91e6 (diff)
downloadgdb-2736b77153629619fe75071356e16d9db51606ff.zip
gdb-2736b77153629619fe75071356e16d9db51606ff.tar.gz
gdb-2736b77153629619fe75071356e16d9db51606ff.tar.bz2
gdb: add interp::on_command_error method
Same idea as the previous patches, but for command_error. Change-Id: If6098225dd72fad8be13b3023b35bc8bc48efb9d
Diffstat (limited to 'gdb/interps.h')
-rw-r--r--gdb/interps.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/interps.h b/gdb/interps.h
index 349ffb1..53d951b 100644
--- a/gdb/interps.h
+++ b/gdb/interps.h
@@ -106,6 +106,10 @@ public:
finished. */
virtual void on_sync_execution_done () {}
+ /* Notify the interpreter that an error was caught while executing a
+ command on this interpreter. */
+ virtual void on_command_error () {}
+
private:
/* The memory for this is static, it comes from literal strings (e.g. "cli"). */
const char *m_name;