Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Earl Chew <earl_chew@agilent.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb@sources.redhat.com
Subject: Re: Mystified by "Internal error: pc 0x89f21e10 read in psymtab, but not  in symtab
Date: Fri, 13 Sep 2002 16:13:00 -0000	[thread overview]
Message-ID: <3D8270FF.3086EA5C@agilent.com> (raw)
In-Reply-To: <20020913225151.GA24869@nevyn.them.org>

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                                            |
> ---------------------------------------------------------------------+


  reply	other threads:[~2002-09-13 23:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-13 14:42 Earl Chew
2002-09-13 15:01 ` Daniel Jacobowitz
2002-09-13 15:42   ` Earl Chew
2002-09-13 15:51     ` Daniel Jacobowitz
2002-09-13 16:13       ` Earl Chew [this message]
2002-09-13 18:32         ` Daniel Jacobowitz
2002-09-15  8:43           ` Earl Chew
2002-09-15  9:02             ` Daniel Jacobowitz
2002-09-15  9:11               ` Earl Chew
2002-09-15 13:39               ` H. J. Lu
2002-09-15 13:43                 ` Daniel Jacobowitz
2002-09-15 21:42                 ` Earl Chew
2002-09-16  7:03                   ` H. J. Lu
2002-09-16 12:26                     ` Jim Blandy
2002-09-16 13:01                       ` Earl Chew

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D8270FF.3086EA5C@agilent.com \
    --to=earl_chew@agilent.com \
    --cc=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox