2002-11-10 Klee Dienes * valarith.c (value_subscripted_rvalue): Set the VALUE_REGNO field of the new value to that of the type being subscripted. * value.h (struct value): Update comment. Index: valarith.c =================================================================== RCS file: /cvs/Darwin/src/live/cygnus/src/gdb/valarith.c,v retrieving revision 1.12 diff -u -r1.12 valarith.c --- valarith.c 2002/08/13 20:04:21 1.12 +++ valarith.c 2002/11/10 22:40:08 @@ -276,6 +276,7 @@ VALUE_LVAL (v) = VALUE_LVAL (array); VALUE_ADDRESS (v) = VALUE_ADDRESS (array); VALUE_OFFSET (v) = VALUE_OFFSET (array) + elt_offs; + VALUE_REGNO (v) = VALUE_REGNO (array); return v; } Index: value.h =================================================================== RCS file: /cvs/Darwin/src/live/cygnus/src/gdb/value.h,v retrieving revision 1.20 diff -u -r1.20 value.h --- value.h 2002/10/15 03:32:35 1.20 +++ value.h 2002/11/10 22:40:39 @@ -127,9 +127,7 @@ list. */ struct value *next; - /* Register number if the value is from a register. Is not kept - if you take a field of a structure that is stored in a - register. Shouldn't it be? */ + /* Register number if the value is from a register. */ short regno; /* If zero, contents of this value are in the contents field. If nonzero, contents are in inferior memory at address