diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-12-02 19:29:42 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-12-02 19:29:42 +0000 |
commit | 8cebebb9a2f399f50f4284797528fb952dd80576 (patch) | |
tree | cd32b630d8e1e76b9b9aa0f89001a9e343d37945 /gdb/ada-lang.c | |
parent | 9c0ae74d4f8b06846a12154d50daf387b73e077c (diff) | |
download | gdb-8cebebb9a2f399f50f4284797528fb952dd80576.zip gdb-8cebebb9a2f399f50f4284797528fb952dd80576.tar.gz gdb-8cebebb9a2f399f50f4284797528fb952dd80576.tar.bz2 |
gdb/ChangeLog:
2009-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
* ada-lang.c (ada_value_assign): Use observer_notify_memory_changed.
* valops.c (value_assign): Likewise.
* defs.h (deprecated_memory_changed_hook): Remove.
* top.c (deprecated_memory_changed_hook): Likewise.
* interps.c (clear_interpreter_hooks): Adjust.
gdb/gdbtk/ChangeLog:
2009-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
* generic/gdbtk-hooks.c (gdbtk_memory_changed): Adjust.
(gdbtk_add_hooks): Adjust.
gdb/doc/ChangeLog:
2009-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
* observer.texi: New memory_changed observer.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 9594d6d..599b8d6 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -2289,9 +2289,8 @@ ada_value_assign (struct value *toval, struct value *fromval) move_bits (buffer, value_bitpos (toval), value_contents (fromval), 0, bits, 0); write_memory (to_addr, buffer, len); - if (deprecated_memory_changed_hook) - deprecated_memory_changed_hook (to_addr, len); - + observer_notify_memory_changed (to_addr, len, buffer); + val = value_copy (toval); memcpy (value_contents_raw (val), value_contents (fromval), TYPE_LENGTH (type)); |