Re: Mystified by "Internal error: pc 0x89f21e10 read in psymtab, but not in symtab

Earl Chew
2002-09-13T23:13:10Z

Daniel Jacobowitz wrote:
> What version compiler and assembler are you using? And are they FSF
> or WindRiver-supplied?

FSF gcc 2.95.4 and binutils 2.11 (I think).

> > Patching dbxread.c
> >
> > pst->symtab = end_symtab (text_offset +
> > text_size +
> > section_offsets->offsets[SECT_OFF_TEXT (objfile)],
> > objfile, SECT_OFF_TEXT (objfile));
> >
> > cures the problem.
> >
> > But I'm not sure if this patch should be applied to
> > end_symtab() instead. I looked and end_symtab() is called from
> > many places, and I don't have enough information to decide
> > if they're right/wrong in the manner of dbxread.c.
> >
> This sounds like your GCC and binutils are out of sync, in fact.

I'm pretty sure there's something wrong with gdb in this regard
because end_symtab is being called with cstk->start_addr
(succesfully relocated) and end_addr (not relocated).

Earl
--
> ---------------------------------------------------------------------+
> Earl Chew http://www.agilent.com |
> Agilent Technologies mailto:earl_chew@agilent.com |
> Advanced Networks Division Tel: +1 604 454 3411 |
> 2500-4710 Kingsway Fax: +1 604 454 3401 |
> Burnaby BC V5H 4M2 Canada |
> ---------------------------------------------------------------------+