[RFA] Fix crash when DW_AT_producer attribute is absent
Daniel Jacobowitz
drow@false.org
Tue Feb 27 12:03:00 GMT 2007
On Mon, Feb 26, 2007 at 08:46:23PM -0800, Joel Brobecker wrote:
> 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)
Whoops, that was sloppy of me. OK and thanks.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list