This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix crash when DW_AT_producer attribute is absent
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 27 Feb 2007 07:03:45 -0500
- Subject: Re: [RFA] Fix crash when DW_AT_producer attribute is absent
- References: <20070227044623.GA13159@adacore.com>
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