From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3255 invoked by alias); 6 Dec 2002 00:31:57 -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 3226 invoked from network); 6 Dec 2002 00:31:55 -0000 Received: from unknown (HELO duracef.shout.net) (204.253.184.12) by sources.redhat.com with SMTP; 6 Dec 2002 00:31:55 -0000 Received: (from mec@localhost) by duracef.shout.net (8.11.6/8.11.6) id gB60Vt517871 for gdb@sources.redhat.com; Thu, 5 Dec 2002 18:31:55 -0600 Date: Thu, 05 Dec 2002 16:31:00 -0000 From: Michael Elizabeth Chastain Message-Id: <200212060031.gB60Vt517871@duracef.shout.net> To: gdb@sources.redhat.com Subject: Namespaces with gcc v3 stabs+? X-SW-Source: 2002-12/txt/msg00100.txt.bz2 Question for Daniel J or David C or Kevin B or anybody who knows about v3 and stabs support ... I'm looking at disimprovements from gcc v2 to gcc v3. One of the issues is that gcc 2.95.3 / stabs+ emits stab information for symbols in namespaces, but gcc 3.2.1 / stabs+ emits the stab information with the wrong name. Here is a test program: namespace AAA { char mychar; } Here is the output with gcc 2.95.3: # gcc 2.95.3, -gstabs+, native i686-pc-linux-gnu .stabs "_3AAA.mychar:G(0,2)",32,0,3,0 .globl _3AAA.mychar .bss .type _3AAA.mychar,@object .size _3AAA.mychar,1 _3AAA.mychar: .zero 1 And here is the output with gcc 3.2.1: # gcc 3.2.1, -gstabs+, native i686-pc-linux-gnu .globl _ZN3AAA6mycharE .bss .type _ZN3AAA6mycharE,@object .size _ZN3AAA6mycharE,1 _ZN3AAA6mycharE: .zero 1 .stabs "mychar:G(0,2)",32,0,3,0 Notice how the stab refers to "mychar", not "_ZN3AAA6mycharE". The output is similar with gcc 3.0.4, gcc 3.1, gcc 3.1.1, gcc 3.2, and gcc HEAD%20021203. Is this ringing any bells? Kevin B had a similar issue in May 2002: http://gcc.gnu.org/ml/gcc-patches/2002-11/msg01661.html I would like to file a bug report against gcc, and then change the test script gdb.c++/namespace.exp to XFAIL the test with stabs+ format and v3 (or later) compilers. Michael C