aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-06-05 20:59:16 +0000
committerAndrew Cagney <cagney@redhat.com>2003-06-05 20:59:16 +0000
commit1df6926e87aef854919f6370e4cf202c8ef8d4b6 (patch)
tree073a36fd8ef17ad300dfd59550ee45324a251a41 /gdb/valops.c
parentb1bd302e10f49871d0b615cfd27d9cc6f87363b1 (diff)
downloadgdb-1df6926e87aef854919f6370e4cf202c8ef8d4b6.zip
gdb-1df6926e87aef854919f6370e4cf202c8ef8d4b6.tar.gz
gdb-1df6926e87aef854919f6370e4cf202c8ef8d4b6.tar.bz2
2003-06-05 Andrew Cagney <cagney@redhat.com>
* Makefile.in (value_h): Add $(frame_h). * value.h: Include "frame.h". (struct value): Replace "frame_addr" with "frame_id". (VALUE_FRAME_ID): Replace VALUE_FRAME. * values.c (allocate_value): Use VALUE_FRAME_ID. (value_copy): Use VALUE_FRAME_ID. * findvar.c (value_from_register): Use VALUE_FRAME_ID. * valops.c (value_assign): Update. Use frame_find_by_id.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 3e85894..e6fb6c8 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -605,10 +605,7 @@ value_assign (struct value *toval, struct value *fromval)
}
else
{
- for (frame = get_current_frame ();
- frame && get_frame_base (frame) != VALUE_FRAME (toval);
- frame = get_prev_frame (frame))
- ;
+ frame = frame_find_by_id (VALUE_FRAME_ID (toval));
value_reg = VALUE_FRAME_REGNUM (toval);
}