This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/stabs] fix failed assertion during replacement of undefined type
> > The compiler ended up emitting the following debugging info for this
> > type, which is incomplete:
> >
> > .stabs "pck__data_t:t(0,32)=B(0,33)=xepck__data_t:",128,0,3,0
>
> I think we should simply refuse this. It's circular and obviously
> broken. We have a reference to a named type and the reference is
> clearly intended to be to a non-volatile type, so GDB blowing up is
> not entirely unreasonable.
I agree that the stabs is wrong, and that we should refuse it. The problem
is that I haven't found a better way of doing that while reading the stabs,
so I decided to do it during the final phase when we are fixing undefined
types.
--
Joel