From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20995 invoked by alias); 14 Sep 2002 01:32:56 -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 20988 invoked from network); 14 Sep 2002 01:32:56 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 14 Sep 2002 01:32:56 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17q2jx-00033Q-00; Fri, 13 Sep 2002 21:32:58 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17q1oA-000854-00; Fri, 13 Sep 2002 21:33:14 -0400 Date: Fri, 13 Sep 2002 18:32:00 -0000 From: Daniel Jacobowitz To: Earl Chew Cc: gdb@sources.redhat.com Subject: Re: Mystified by "Internal error: pc 0x89f21e10 read in psymtab, but not in symtab Message-ID: <20020914013314.GB31038@nevyn.them.org> Mail-Followup-To: Earl Chew , gdb@sources.redhat.com References: <3D825BB5.48CFAFAB@agilent.com> <20020913220110.GA22097@nevyn.them.org> <3D8269C8.8E33C4AC@agilent.com> <20020913225151.GA24869@nevyn.them.org> <3D8270FF.3086EA5C@agilent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D8270FF.3086EA5C@agilent.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-09/txt/msg00176.txt.bz2 On Fri, Sep 13, 2002 at 04:13:04PM -0700, Earl Chew wrote: > 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). With any patches? And, did you check which of .mdebug/.stab you're getting? > > > 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). One difference between stabs-in-mdebug and stabs-in-elf is whether line and other addresses are relative to the beginning of the function or absolute. A mismatch causes this symptom. If you're getting stabs-in-ELF, I believe GCC 2.95 is not prepared for that. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer