This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RFA: correctly set type of extracted baseclasses
- To: gdb-patches at sources dot redhat dot com
- Subject: RFA: correctly set type of extracted baseclasses
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: Thu, 17 May 2001 11:21:51 -0500 (EST)
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