From a88c1392bd0e518767fc32251fcbbe2899abbb5d Mon Sep 17 00:00:00 2001 From: Fernando Nasser Date: Fri, 9 Jun 2000 00:51:55 +0000 Subject: [PATCH] 2000-06-08 Fernando Nasser * 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). --- gdb/ChangeLog | 6 ++++++ gdb/values.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a4b40468f4..a62bb5f43e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2000-06-08 Fernando Nasser + + * 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). + Thu Jun 8 15:26:44 2000 Andrew Cagney * config/mips/tm-mips.h (GDB_MULTI_ARCH): Define as 1. diff --git a/gdb/values.c b/gdb/values.c index b77f405c45..ff4951dba0 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;