aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbcore.h
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-06-24 07:28:10 +0000
committerYao Qi <yao@codesourcery.com>2012-06-24 07:28:10 +0000
commit972daa01e2ee0a5c41e1dd45a71ad398c9266af8 (patch)
tree7e71907c31591615f449be8d88c3c99fb068076d /gdb/gdbcore.h
parent8d6e0714b7f1919bfe3720e8d0417708f00ae1ba (diff)
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'.
Diffstat (limited to 'gdb/gdbcore.h')
-rw-r--r--gdb/gdbcore.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h
index 1081f3f362..d6c9de20e3 100644
--- a/gdb/gdbcore.h
+++ b/gdb/gdbcore.h
@@ -86,6 +86,12 @@ CORE_ADDR read_memory_typed_address (CORE_ADDR addr, struct type *type);
extern void write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr,
ssize_t len);
+/* Same as write_memory, but notify 'memory_changed' observers. */
+
+extern void write_memory_with_notification (CORE_ADDR memaddr,
+ const bfd_byte *myaddr,
+ ssize_t len);
+
/* Store VALUE at ADDR in the inferior as a LEN-byte unsigned integer. */
extern void write_memory_unsigned_integer (CORE_ADDR addr, int len,
enum bfd_endian byte_order,