aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-09-14 00:54:58 +0000
committerYao Qi <yao@codesourcery.com>2012-09-14 00:54:58 +0000
commitd649a38e159d2cb937ba739d84654e7baf44ea71 (patch)
tree75b6ede6969dcd74928ac89aef4f0c5c9fc626d1 /gdb/valops.c
parent6d63c930d3a7cce40a741e028526002d77f6e786 (diff)
downloadbinutils-d649a38e159d2cb937ba739d84654e7baf44ea71.zip
binutils-d649a38e159d2cb937ba739d84654e7baf44ea71.tar.gz
binutils-d649a38e159d2cb937ba739d84654e7baf44ea71.tar.bz2
gdb/
* valops.c (value_assign): Move observer_notify_target_changed below to replace reinit_frame_cache.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 17696ee..3a5ac0f 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -1374,7 +1374,6 @@ value_assign (struct value *toval, struct value *fromval)
if (deprecated_register_changed_hook)
deprecated_register_changed_hook (-1);
- observer_notify_target_changed (&current_target);
break;
}
@@ -1396,7 +1395,7 @@ value_assign (struct value *toval, struct value *fromval)
/* Assigning to the stack pointer, frame pointer, and other
(architecture and calling convention specific) registers may
- cause the frame cache to be out of date. Assigning to memory
+ cause the frame cache and regcache to be out of date. Assigning to memory
also can. We just do this on all assignments to registers or
memory, for simplicity's sake; I doubt the slowdown matters. */
switch (VALUE_LVAL (toval))
@@ -1405,7 +1404,7 @@ value_assign (struct value *toval, struct value *fromval)
case lval_register:
case lval_computed:
- reinit_frame_cache ();
+ observer_notify_target_changed (&current_target);
/* Having destroyed the frame cache, restore the selected
frame. */