2003-04-12 Andrew Cagney <cagney@redhat.com>
[binutils-gdb.git] / gdb / valarith.c
index dcfd92c9de8ba9d59cd1fbfbee551d24525a545f..ed0fe05f35e64d8a1091f1f704eec98279b6484f 100644 (file)
@@ -276,6 +276,7 @@ value_subscripted_rvalue (struct value *array, struct value *idx, int lowerbound
   else
     VALUE_LVAL (v) = VALUE_LVAL (array);
   VALUE_ADDRESS (v) = VALUE_ADDRESS (array);
+  VALUE_REGNO (v) = VALUE_REGNO (array);
   VALUE_OFFSET (v) = VALUE_OFFSET (array) + elt_offs;
   return v;
 }