[RFA] Fix crash when DW_AT_producer attribute is absent

Joel Brobecker brobecker@adacore.com
Tue Feb 27 23:08:00 GMT 2007


> > The crash happens because we do the following inside dwarf2read.c:
> > 
> >   attr = dwarf2_attr (die, DW_AT_producer, cu);
> >   if (attr)
> >     cu->producer = DW_STRING (attr);
> >   [...]
> >   record_producer (cu->producer);
> > 
> >   (but cu->producer is NULL)
> 
> OK and thanks.

Thanks Daniel. Checked in.

-- 
Joel



More information about the Gdb-patches mailing list