gdb: add interp::on_memory_changed method

Same idea as previous patches, but for memory_changed.

Change-Id: Ic19f20c24d8a6431d4a89c5625e8ef4898f76e82
This commit is contained in:
Simon Marchi
2023-04-21 09:45:30 -04:00
parent 3d654fa72d
commit ec517d1040
5 changed files with 57 additions and 43 deletions

View File

@@ -591,6 +591,15 @@ interps_notify_param_changed (const char *param, const char *value)
interps_notify (&interp::on_param_changed, param, value);
}
/* See interps.h. */
void
interps_notify_memory_changed (inferior *inf, CORE_ADDR addr, ssize_t len,
const bfd_byte *data)
{
interps_notify (&interp::on_memory_changed, inf, addr, len, data);
}
/* This just adds the "interpreter-exec" command. */
void _initialize_interpreter ();
void