forked from Imagelibrary/binutils-gdb
gdb:
* corefile.c (write_memory_with_notification): New. * gdbcore.h: Declare write_memory_with_notification. * ada-lang.c (ada_value_assign): Replace 'write_memory' and 'observer_notify_memory_changed' with 'write_memory_with_notification'. * valops.c (value_assign): Likewise. * python/py-inferior.c (infpy_write_memory): Call 'write_memory_with_notification'.
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "gdb_stat.h"
|
||||
#include "completer.h"
|
||||
#include "exceptions.h"
|
||||
#include "observer.h"
|
||||
|
||||
/* Local function declarations. */
|
||||
|
||||
@@ -361,6 +362,16 @@ write_memory (CORE_ADDR memaddr,
|
||||
memory_error (status, memaddr);
|
||||
}
|
||||
|
||||
/* Same as write_memory, but notify 'memory_changed' observers. */
|
||||
|
||||
void
|
||||
write_memory_with_notification (CORE_ADDR memaddr, const bfd_byte *myaddr,
|
||||
ssize_t len)
|
||||
{
|
||||
write_memory (memaddr, myaddr, len);
|
||||
observer_notify_memory_changed (memaddr, len, myaddr);
|
||||
}
|
||||
|
||||
/* Store VALUE at ADDR in the inferior as a LEN-byte unsigned
|
||||
integer. */
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user