From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1407 invoked by alias); 12 Oct 2006 04:29:13 -0000 Received: (qmail 1313 invoked by uid 22791); 12 Oct 2006 04:29:12 -0000 X-Spam-Check-By: sourceware.org Received: from shell4.bayarea.net (HELO shell4.bayarea.net) (209.128.82.1) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Oct 2006 04:29:09 +0000 Received: from [192.168.20.7] (209-128-106-254.bayarea.net [209.128.106.254]) (authenticated bits=0) by shell4.bayarea.net (8.13.6/8.13.6) with ESMTP id k9C4T7JT028219 for ; Wed, 11 Oct 2006 21:29:07 -0700 Message-ID: <452DC493.40908@eagercon.com> Date: Thu, 12 Oct 2006 04:29:00 -0000 From: Michael Eager User-Agent: Thunderbird 1.5.0.7 (X11/20060913) MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: GDB internal error: pc in psymtab, not in symtab Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00067.txt.bz2 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. There seem to be fixes for problems with similar symptoms with mdebug and stabs, but nothing for DWARF. Have you seen any kind of fix? Any suggestion for a fix? It doesn't look like GDB knows where the debug info came from. One fix is to simply suppress the message. Another is to have the DWARF reader tag the psym if no symbols are found, so that symtab.c can know that it's not an error. -- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077