This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: C++ debugging progress
>>>>> "Daniel" == Daniel Jacobowitz <dmj+@andrew.cmu.edu> writes:
> OK, if I'm reading this at all correctly, the offset in the baseclass
> definition is assumed to be 0 for a virtual baseclass, and ignored; it
> is assumed that there will be a $vb later. So that offset slot is a
> perfect place to put the information I need. Just let me know if it is
> relative to the start of the vtable or to the vtable pointer. That'll
> be enough information to do a much better job.
The vtable pointer.
> I should add: is there some way we can disambiguate correct and
> incorrect debug info after this fix? For Dwarf2 I see how to do it
> pretty easily. Would an explicit minus sign work? I think GDB won't
> croak on that.
That would be fine; just remove the negation from the dbxout.c patch.
Jason