This is the mail archive of the gdb-patches@sources.redhat.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: correctly set type of extracted baseclasses



2001-05-17  Jim Blandy  <jimb@redhat.com>

	* values.c (value_primitive_field): If we're extracting a base
	class, then the type of the result should be the base class being
	extracted, not the type of which it is a base class.

*** gdb/values.c.base~	Tue Apr 24 13:50:06 2001
--- gdb/values.c	Thu May 17 06:59:47 2001
***************
*** 805,811 ****
           entire object's contents for later references to virtual
           bases, etc.  */
        v = allocate_value (VALUE_ENCLOSING_TYPE (arg1));
!       VALUE_TYPE (v) = arg_type;
        if (VALUE_LAZY (arg1))
  	VALUE_LAZY (v) = 1;
        else
--- 805,811 ----
           entire object's contents for later references to virtual
           bases, etc.  */
        v = allocate_value (VALUE_ENCLOSING_TYPE (arg1));
!       VALUE_TYPE (v) = type;
        if (VALUE_LAZY (arg1))
  	VALUE_LAZY (v) = 1;
        else


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