From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5140 invoked by alias); 11 Mar 2003 00:53:31 -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 5124 invoked from network); 11 Mar 2003 00:53:30 -0000 Received: from unknown (HELO jackfruit.Stanford.EDU) (171.64.38.136) by 172.16.49.205 with SMTP; 11 Mar 2003 00:53:30 -0000 Received: (from carlton@localhost) by jackfruit.Stanford.EDU (8.11.6/8.11.6) id h2B0rRW15991; Mon, 10 Mar 2003 16:53:27 -0800 X-Authentication-Warning: jackfruit.Stanford.EDU: carlton set sender to carlton@math.stanford.edu using -f To: gdb Cc: Michael Elizabeth Chastain , Daniel Jacobowitz Subject: GCC, stabs, mangled names From: David Carlton Date: Tue, 11 Mar 2003 00:53:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-03/txt/msg00150.txt.bz2 Is there a problem with gcc -gstabs+ and mangled names in recent GCC's? I'm no stabs expert, but when I compile this file: namespace C { namespace D { int cd = 1; } } with GCC 3.1 with g++ -gstabs+ -S -dA, I get output where the only bits that mention the variable in question are: .globl _ZN1C1D2cdE .data .align 4 .type _ZN1C1D2cdE,@object .size _ZN1C1D2cdE,4 _ZN1C1D2cdE: .long 1 .stabs "cd:G(0,1)",32,0,3,0 Is GDB supposed to be able to figure out the mangled name for C::D::cd from that? Or does stabs not contain that sort of info? (Or is this a bug that more recent GCC's have fixed?) I seem to recall a discussion about this earlier, but I can't remember the outcome, and I couldn't find anything relevant in GDB's or GCC's bug database. Thanks, David Carlton carlton@math.stanford.edu