This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa/c++] Print virtual baseclasses correctly
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: 07 Dec 2001 16:49:36 -0500
- Subject: Re: [rfa/c++] Print virtual baseclasses correctly
- References: <20011204002249.A21308@nevyn.them.org>
Daniel Jacobowitz <drow@mvista.com> writes:
> If the virtual base was outside of the particular object we're reading at
> the moment (which it often is if we are printing a baseclass of some derived
> class with virtual bases), we used to lose offsets inside cp_print_value.
> The symptom was that "p (baseclass)obj" would be correct, but "p obj" would
> show corrupted values for <baseclass>. This will (eventually, once my other
> patches go in) fix two failures v3 for me in inherit.exp (print g_vD and
> print g_vE).
>
> OK to commit?
Yes, please do.