From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17067 invoked by alias); 14 Nov 2002 15:14:35 -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 17058 invoked from network); 14 Nov 2002 15:14:33 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 14 Nov 2002 15:14:33 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18CLh4-0007Ux-00; Thu, 14 Nov 2002 09:14:11 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18CLiK-0003rH-00; Thu, 14 Nov 2002 10:15:28 -0500 Date: Thu, 14 Nov 2002 07:14:00 -0000 From: Daniel Jacobowitz To: Steven Johnson Cc: gdb@sources.redhat.com Subject: Re: Internal error in GDB Message-ID: <20021114151528.GA14693@nevyn.them.org> Mail-Followup-To: Steven Johnson , gdb@sources.redhat.com References: <3DD351ED.7000409@neurizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DD351ED.7000409@neurizon.net> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-11/txt/msg00168.txt.bz2 On Thu, Nov 14, 2002 at 05:34:05PM +1000, Steven Johnson wrote: > Im getting the error: > > Internal error: pc 0x0 in read in psymtab, but not in symtab. > > from a very recent CVS build of GDB (As of 11th November). > > It happens when I set breakpoints in an assembler file, that has been > assembled through GCC, using the C Preprocessor (.S file, not .s file). > > It does nothing wrong, except pop up all the time and hence interfere > with debugging significantly. (Im using insight and have to keep > pressing OK to continue). > > I searched the code and it seems to be coming from > symtab.c:find_pc_sect_symtab (last if in the function) > > The comment in the code indicates that this error may want to stop GDB > cold. Thankfully it isn't, cause I seem to be getting it in error. > > Also, the code here seems to be wrong, it prints the error, and then > proceeds to look it up anyway. As in: > > if (ps->readin) > warning("Internal error: pc 0x%s in read in psymtab, but not in > symtab.",paddr_nz(pc)); > > s = PSYMTAB_TO_SYMTAB(s) > > I would have expected, from the error, it not to try and > PSYMTAB_TO_SYMTAB, as it is saying it isn't in the SYMTAB. as in: > > if (ps->readin) > warning("Internal error: pc 0x%s in read in psymtab, but not in > symtab.",paddr_nz(pc)); > else > s = PSYMTAB_TO_SYMTAB(s) > > Anyway, what is going on here? What do i need to do to my assembler > file to prevent this warning? Do you have an assembler file you can post that triggers the warning? I'd like to see it. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer