gdb:
* breakpoint.c (invalidate_bp_value_on_memory_change): Add one more parameter 'inferior'. * corefile.c (write_memory_with_notification): Caller update. * mi/mi-cmd-var.c: Include "mi-main.h". (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory to 1 and restore it later. * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory" and "data-write-memory-bytes. * mi/mi-interp.c: Include objfiles.h. (mi_interpreter_init): Call observer_attach_memory_changed. (mi_memory_changed): New. * mi/mi-main.h (struct mi_suppress_notification) <memory>: New field. * NEWS: Mention new MI notification "memory-changed". gdb/doc: * observer.texi (GDB Observers): Update observer 'memory_changed'. * gdb.texinfo (GDB/MI Async Records): Document for "memory-changed" notification. gdb/testsuite: * gdb.mi/mi-memory-changed.exp: New.
This commit is contained in:
parent
b1fecbf125
commit
8de0566d7a
13 changed files with 186 additions and 6 deletions
|
@ -14718,7 +14718,8 @@ show_breakpoint_cmd (char *args, int from_tty)
|
|||
GDB itself. */
|
||||
|
||||
static void
|
||||
invalidate_bp_value_on_memory_change (CORE_ADDR addr, ssize_t len,
|
||||
invalidate_bp_value_on_memory_change (struct inferior *inferior,
|
||||
CORE_ADDR addr, ssize_t len,
|
||||
const bfd_byte *data)
|
||||
{
|
||||
struct breakpoint *bp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue