2003-03-08 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sat, 8 Mar 2003 19:27:12 +0000 (19:27 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 8 Mar 2003 19:27:12 +0000 (19:27 +0000)
* valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
the result.

gdb/ChangeLog
gdb/valarith.c

index a89411fe883c70c96c8f197ef4bc03cf19beee89..cc719a8b8edc4b8fa7d9930a333afcb0d5083ccb 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-08  Andrew Cagney  <cagney@redhat.com>
+
+       * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
+       the result.
+
 2003-03-07  Andrew Cagney  <cagney@redhat.com>
 
        * gdbarch.sh: Don't generate two macro definitions when an
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;
 }
This page took 0.028896 seconds and 4 git commands to generate.