aboutsummaryrefslogtreecommitdiff
path: root/gdb/interps.h
diff options
context:
space:
mode:
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 948b6f5..ebe078e 100644
--- a/gdb/interps.h
+++ b/gdb/interps.h
@@ -178,6 +178,10 @@ public:
/* Notify the interpreter that parameter PARAM changed to VALUE. */
virtual void on_param_changed (const char *param, const char *value) {}
+ /* Notify the interpreter that inferior INF's memory was changed. */
+ virtual void on_memory_changed (inferior *inf, CORE_ADDR addr, ssize_t len,
+ const bfd_byte *data) {}
+
private:
/* The memory for this is static, it comes from literal strings (e.g. "cli"). */
const char *m_name;
@@ -359,6 +363,10 @@ extern void interps_notify_breakpoint_modified (breakpoint *b);
/* Notify all interpreters that parameter PARAM changed to VALUE. */
extern void interps_notify_param_changed (const char *param, const char *value);
+/* Notify all interpreters that inferior INF's memory was changed. */
+extern void interps_notify_memory_changed (inferior *inf, CORE_ADDR addr,
+ ssize_t len, const bfd_byte *data);
+
/* well-known interpreters */
#define INTERP_CONSOLE "console"
#define INTERP_MI2 "mi2"