This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/c++] Fix printing classes with virtual base classes
These are two independent fixes, right? I understand GDB may need
them both before it works correctly; I'm asking if each of them is a
correct change in its own right. If so, could you show me a test case
that each change fixes?
Daniel Jacobowitz <drow@mvista.com> writes:
> 2001-11-26 Daniel Jacobowitz <drow@mvista.com>
>
> * values.c (value_primitive_field): Add embedded_offset to the
> address of structure members.
> * gnu-v3-abi.c (gnuv3_rtti_type): Cast to base type before
> attempting to access vtable pointer. Set using_enc_p if we cast.
> (gnuv3_virtual_fn_field): Call value_cast with structure rather than
> structure pointer. Cast to base type before attempting to access
> vtable pointer.