This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Crash in write_exp_msymbol for coff targets.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Pedro Alves <pedro_alves at portugalmail dot pt>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 18 Nov 2006 18:54:32 -0500
- Subject: Re: Crash in write_exp_msymbol for coff targets.
- References: <455CCFAD.6060407@portugalmail.pt>
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