This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Infinite loop in make_cv_type
On Fri, Feb 22, 2002 at 09:18:46AM -0800, Michael Snyder wrote:
> Daniel Jacobowitz wrote:
> >
> > On Fri, Feb 22, 2002 at 11:40:38AM +0000, Richard Earnshaw wrote:
> > > While testing cplusfuncs.exp on ARM/NetBSD (a.out) with gcc-3 current, gdb
> > > is getting stuck in an infinite loop in gdbtypes.c:make_cv_type and I'm
> > > trying to work out what this is supposed to do. The scenario I'm seeing
> > > is that the type ring has become corrupted as follows along the
> > > TYPE_CV_TYPE chain
> > >
> > > type
> > > |
> > > V
> > > var1<----+
> > > | |
> > > +------+
> > >
> > > Given that this is supposed to be a loop, it's clearly bogus.
> >
> > Definitely.
>
> Hang on, I'm pretty sure that the cv type chain
> is supposed to do that. The pointer loop is
> intentional.
Ring, not noose, I think.
I.E. anything pointing into the ring should be in fact on the ring.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer