This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RFA: Fix to value.c (value_primitive_field)


The ChangeLog entry says all.

ChangeLog:

     * 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).

-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@cygnus.com
2323 Yonge Street, Suite #300           Tel:  416-482-2661 ext. 311
Toronto, Ontario   M4P 2C9              Fax:  416-482-6299


Index: values.c
===================================================================
RCS file: /cvs/src/src/gdb/values.c,v
retrieving revision 1.6
diff -c -p -r1.6 values.c
*** values.c    2000/05/28 01:12:33     1.6
--- values.c    2000/05/30 14:07:26
*************** value_primitive_field (arg1, offset, fie
*** 841,846 ****
--- 841,847 ----
    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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]