forked from Imagelibrary/binutils-gdb
gdb/
* valops.c (value_assign): Move observer_notify_target_changed below to replace reinit_frame_cache.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2012-09-14 Yao Qi <yao@codesourcery.com>
|
||||||
|
Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
* valops.c (value_assign): Move observer_notify_target_changed
|
||||||
|
below to replace reinit_frame_cache.
|
||||||
|
|
||||||
2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
|
2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
|
||||||
|
|
||||||
Refactor Python "gdb" module into a proper Python package, by
|
Refactor Python "gdb" module into a proper Python package, by
|
||||||
|
|||||||
@@ -1374,7 +1374,6 @@ value_assign (struct value *toval, struct value *fromval)
|
|||||||
|
|
||||||
if (deprecated_register_changed_hook)
|
if (deprecated_register_changed_hook)
|
||||||
deprecated_register_changed_hook (-1);
|
deprecated_register_changed_hook (-1);
|
||||||
observer_notify_target_changed (¤t_target);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1396,7 +1395,7 @@ value_assign (struct value *toval, struct value *fromval)
|
|||||||
|
|
||||||
/* Assigning to the stack pointer, frame pointer, and other
|
/* Assigning to the stack pointer, frame pointer, and other
|
||||||
(architecture and calling convention specific) registers may
|
(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
|
also can. We just do this on all assignments to registers or
|
||||||
memory, for simplicity's sake; I doubt the slowdown matters. */
|
memory, for simplicity's sake; I doubt the slowdown matters. */
|
||||||
switch (VALUE_LVAL (toval))
|
switch (VALUE_LVAL (toval))
|
||||||
@@ -1405,7 +1404,7 @@ value_assign (struct value *toval, struct value *fromval)
|
|||||||
case lval_register:
|
case lval_register:
|
||||||
case lval_computed:
|
case lval_computed:
|
||||||
|
|
||||||
reinit_frame_cache ();
|
observer_notify_target_changed (¤t_target);
|
||||||
|
|
||||||
/* Having destroyed the frame cache, restore the selected
|
/* Having destroyed the frame cache, restore the selected
|
||||||
frame. */
|
frame. */
|
||||||
|
|||||||
Reference in New Issue
Block a user