From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28620 invoked by alias); 13 Sep 2002 23:13:10 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 28609 invoked from network); 13 Sep 2002 23:13:09 -0000 Received: from unknown (HELO msgbas2.cos.agilent.com) (192.25.240.37) by sources.redhat.com with SMTP; 13 Sep 2002 23:13:09 -0000 Received: from relcos2.cos.agilent.com (relcos2.cos.agilent.com [130.29.152.237]) by msgbas2.cos.agilent.com (Postfix) with ESMTP id A7CE91C76; Fri, 13 Sep 2002 17:13:08 -0600 (MDT) Received: from websvr.canada.agilent.com (websvr.canada.agilent.com [141.184.122.102]) by relcos2.cos.agilent.com (Postfix) with ESMTP id CB6D7311; Fri, 13 Sep 2002 17:12:22 -0600 (MDT) Received: from agilent.com (dhcp6burnaby.canada.agilent.com [141.184.123.147]) by websvr.canada.agilent.com (8.9.3 (PHNE_25183)/8.9.3 SMKit7.1.1_Agilent) with ESMTP id QAA08897; Fri, 13 Sep 2002 16:13:07 -0700 (PDT) Message-ID: <3D8270FF.3086EA5C@agilent.com> Date: Fri, 13 Sep 2002 16:13:00 -0000 From: Earl Chew Organization: Agilent Technologies X-Accept-Language: en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb@sources.redhat.com Subject: Re: Mystified by "Internal error: pc 0x89f21e10 read in psymtab, but not in symtab References: <3D825BB5.48CFAFAB@agilent.com> <20020913220110.GA22097@nevyn.them.org> <3D8269C8.8E33C4AC@agilent.com> <20020913225151.GA24869@nevyn.them.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00170.txt.bz2 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 | > ---------------------------------------------------------------------+