From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7503 invoked by alias); 12 Oct 2006 04:43:20 -0000 Received: (qmail 7487 invoked by uid 22791); 12 Oct 2006 04:43:19 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 12 Oct 2006 04:43:13 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GXsPW-0005bm-Ev; Thu, 12 Oct 2006 00:43:10 -0400 Date: Thu, 12 Oct 2006 04:43:00 -0000 From: Daniel Jacobowitz To: Michael Eager Cc: gdb@sources.redhat.com Subject: Re: GDB internal error: pc in psymtab, not in symtab Message-ID: <20061012044310.GA21442@nevyn.them.org> Mail-Followup-To: Michael Eager , gdb@sources.redhat.com References: <452DC493.40908@eagercon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <452DC493.40908@eagercon.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00069.txt.bz2 On Wed, Oct 11, 2006 at 09:29:07PM -0700, Michael Eager wrote: > I've been bitten by this same problem: > http://sourceware.org/ml/gdb/2005-11/msg00279.html > > It looks like GDB issues a warning when the ELF symbol > table contains symbols, but the DWARF data doesn't. > Assembler source with a .file will have DWARF sections, > but only a TAG_Compilation_Unit. It's legit DWARF. Psymtabs do not come from the ELF symbol table; they come from a first pass over the DWARF information. So, if this warning triggers, that pass must have done something bogus. "maint print psymbols" and "maint print symbols" might be useful; the interesting question is, what psymtab thought it covered the address, and why didn't the corresponding symtab? Oh, one frequent cause is mis-estimating the range of addresses covered by the psymtab. -- Daniel Jacobowitz CodeSourcery