summaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorFernando Nasser <fnasser@redhat.com>2000-06-09 00:51:55 +0000
committerFernando Nasser <fnasser@redhat.com>2000-06-09 00:51:55 +0000
commita94404196bed2412383c6512a79c80c1c1c6ffb2 (patch)
tree55cccdaa7cb1506e8c572f612ac61c44998ac165 /gdb/values.c
parentba7ee1f945cbe94141fa1250e9478aebf2272bd0 (diff)
downloadgdb-a94404196bed2412383c6512a79c80c1c1c6ffb2.tar.gz
2000-06-08 Fernando Nasser <fnasser@cygnus.com>
* values.c (value_primitive_field): Copy VALUE_REGNO as well. With typed registers we may have the location information in this field, in addition to VALUE_ADDRESS (which was already being copied).
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/values.c b/gdb/values.c
index b77f405c45b..ff4951dba03 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -841,6 +841,7 @@ value_primitive_field (arg1, offset, fieldno, arg_type)
if (VALUE_LVAL (arg1) == lval_internalvar)
VALUE_LVAL (v) = lval_internalvar_component;
VALUE_ADDRESS (v) = VALUE_ADDRESS (arg1);
+ VALUE_REGNO (v) = VALUE_REGNO (arg1);
/* VALUE_OFFSET (v) = VALUE_OFFSET (arg1) + offset
+ TYPE_FIELD_BITPOS (arg_type, fieldno) / 8; */
return v;