From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31007 invoked by alias); 17 Dec 2002 02:26: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 30999 invoked from network); 17 Dec 2002 02:26:53 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 17 Dec 2002 02:26:53 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18O9K4-00054r-00; Mon, 16 Dec 2002 22:27:12 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18O7SY-0002sv-00; Mon, 16 Dec 2002 21:27:50 -0500 Date: Mon, 16 Dec 2002 18:26:00 -0000 From: Daniel Jacobowitz To: Michael Elizabeth Chastain Cc: carlton@math.stanford.edu, pkoning@equallogic.com, gdb@sources.redhat.com Subject: Re: psymtab/symtab error Message-ID: <20021217022749.GA11044@nevyn.them.org> Mail-Followup-To: Michael Elizabeth Chastain , carlton@math.stanford.edu, pkoning@equallogic.com, gdb@sources.redhat.com References: <200212170215.gBH2FbD12856@duracef.shout.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200212170215.gBH2FbD12856@duracef.shout.net> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-12/txt/msg00235.txt.bz2 On Mon, Dec 16, 2002 at 08:15:37PM -0600, Michael Elizabeth Chastain wrote: > Paul Koning wrote: > > > I don't know. I ran into this with gcc 3.0.1, NetBSD i386 host, > > NetBSD MIPS target. > > Yikes. gcc 3.0.4 had many bugs with C++ debugging information, > particularly with templates. > > And the symbol `_ZN9CFreeListI7CVolumeE6m_baseE' demangles to > `CFreeList::m_base', which is definitely a template > symbol (probably a member, from the name). > > I am assuming here that your gcc 3.0.1 on NetBSD MIPS will have > about the same symbol table code as my gcc 3.0.4 on native > i686-pc-linux-gnu. > > I recommend that you upgrade to gcc 3.1 or gcc 3.1.1 or gcc 3.2 or > gcc 3.2.1. gcc 3.2.1 would be the best but any of them are much better > than gcc 3.0.4. Eschew the CVS versions of gcc, they are not measurably > better than gcc 3.2.1 at this time and in some ways they are worse. > > If you can't upgrade gcc, you can try building your whole program > with "-gdwarf-2" and see if that helps. If that doesn't help any, > building the whole program with "-gstabs+" and see if that helps. > -gdwarf-2 is the best debugging format for C++, and -gstabs+ is > second best. These options are not available with his tools versions; it's mdebug or bust. DWARF-2 didn't start working until 3.2 or so, and stabs until binutils 2.12.1 or so. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer