This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Fix crash when DW_AT_producer attribute is absent


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]