aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorOrjan Friberg <orjanf@axis.com>2004-04-26 09:49:36 +0000
committerOrjan Friberg <orjanf@axis.com>2004-04-26 09:49:36 +0000
commitf4c5303c32d8fda229d182d9d7db4ceb64bf9e02 (patch)
tree1019d06d4acf0538f5f116d80bcfd0c9f867d287 /gdb/valops.c
parent79346bcbc0a0cc4086e810f116a1fcd39c7cd2ef (diff)
downloadgdb-f4c5303c32d8fda229d182d9d7db4ceb64bf9e02.zip
gdb-f4c5303c32d8fda229d182d9d7db4ceb64bf9e02.tar.gz
gdb-f4c5303c32d8fda229d182d9d7db4ceb64bf9e02.tar.bz2
2004-04-26 Orjan Friberg <orjanf@axis.com>
* frame.c: Include "observer.h". (frame_observer_target_changed): New function. (_initialize_frame): Attach target_changed observer. * regcache.c: Include "observer.h". (regcache_observer_target_changed): New function. (_initialize_regcache): Attach target_changed observer. * valops.c: Include "observer.h". (value_assign): Notify target_changed event when modifying register. * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index be7dec5..5ab4149 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -42,6 +42,7 @@
#include "gdb_string.h"
#include "gdb_assert.h"
#include "cp-support.h"
+#include "observer.h"
extern int overload_debug;
/* Local functions. */
@@ -701,6 +702,7 @@ value_assign (struct value *toval, struct value *fromval)
if (deprecated_register_changed_hook)
deprecated_register_changed_hook (-1);
target_changed_event ();
+ observer_notify_target_changed (&current_target);
break;
}