Crash in write_exp_msymbol for coff targets.

Daniel Jacobowitz drow@false.org
Sat Nov 18 23:54:00 GMT 2006


On Thu, Nov 16, 2006 at 08:53:01PM +0000, Pedro Alves wrote:
> 2006-11-16  Pedro Alves  <pedro_alves@portugalmail.pt>
> 
>    * parse.c (write_exp_msymbol): Check if SYMBOL_BFD_SECTION (msymbol) 
> is NULL
>    before dereferencing it.

While I think we should fix coffread to set this too, meanwhile, let's
avoid the crash.  I've checked this in.  Careful of wrapping in the
ChangeLog entry; that line was too long.  And thanks for the patch!

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list