From f49bacc80cb0d10690855e55b2e968cc5d3ceecd Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 8 Mar 2003 19:27:12 +0000 Subject: 2003-03-08 Andrew Cagney * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to the result. --- gdb/valarith.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/valarith.c') diff --git a/gdb/valarith.c b/gdb/valarith.c index dcfd92c..ed0fe05 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -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; } -- cgit v1.1