aboutsummaryrefslogtreecommitdiff
path: root/gdb/findvar.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-11-15 22:17:59 +0000
committerAndrew Cagney <cagney@redhat.com>2004-11-15 22:17:59 +0000
commit0c16dd26a8129f61b7a6fb7d9aca8fa8b21b53a8 (patch)
tree26685e16331b95b22d09796ac0d5f6642d16ecd3 /gdb/findvar.c
parent4bd1d37b6f22a363637bd74a499e73f6413cf94b (diff)
downloadgdb-0c16dd26a8129f61b7a6fb7d9aca8fa8b21b53a8.zip
gdb-0c16dd26a8129f61b7a6fb7d9aca8fa8b21b53a8.tar.gz
gdb-0c16dd26a8129f61b7a6fb7d9aca8fa8b21b53a8.tar.bz2
2004-11-15 Andrew Cagney <cagney@gnu.org>
* findvar.c (value_of_register): Set the frame ID. * value.c (value_primitive_field): Copy the frame ID. * valops.c (value_assign): Simplify lval_register case, there's always a frame.
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r--gdb/findvar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c
index 487d25e..cc7d7a5 100644
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -288,6 +288,7 @@ value_of_register (int regnum, struct frame_info *frame)
VALUE_ADDRESS (reg_val) = addr;
VALUE_REGNUM (reg_val) = regnum;
VALUE_OPTIMIZED_OUT (reg_val) = optim;
+ VALUE_FRAME_ID (reg_val) = get_frame_id (frame);
return reg_val;
}