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 | ec517d1040bf02e15e9724b14df9dba73665883f (patch) | |
tree | 5240d7693ca969a930bcb7df0fb13f1be8de28d0 /gdb/interps.h | |
parent | 3d654fa72d3ab52e3ced87291e41f160544d68b7 (diff) | |
download | gdb-ec517d1040bf02e15e9724b14df9dba73665883f.zip gdb-ec517d1040bf02e15e9724b14df9dba73665883f.tar.gz gdb-ec517d1040bf02e15e9724b14df9dba73665883f.tar.bz2 |
gdb: add interp::on_memory_changed method
Same idea as previous patches, but for memory_changed.
Change-Id: Ic19f20c24d8a6431d4a89c5625e8ef4898f76e82
Diffstat (limited to 'gdb/interps.h')
-rw-r--r-- | gdb/interps.h | 8 |
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" |