From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5730 invoked by alias); 2 Nov 2010 19:37:05 -0000 Received: (qmail 5673 invoked by uid 22791); 2 Nov 2010 19:37:05 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Nov 2010 19:36:59 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oA2JawI3027159 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 2 Nov 2010 15:36:58 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oA2Jav7t001011; Tue, 2 Nov 2010 15:36:57 -0400 Received: from parfait.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id oA2JauxC004023; Tue, 2 Nov 2010 15:36:56 -0400 From: Tom Tromey To: Michel METZGER Cc: "gdb\@sourceware.org" Subject: Re: Bad struct name in gdb with g++ 4.1.2 References: <5B4CE209869C6A4797F5FAA0B348F0A0D9EA8C20A7@SAFEX1MAIL1.st.com> Date: Tue, 02 Nov 2010 19:37:00 -0000 In-Reply-To: <5B4CE209869C6A4797F5FAA0B348F0A0D9EA8C20A7@SAFEX1MAIL1.st.com> (Michel METZGER's message of "Tue, 2 Nov 2010 19:42:31 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-11/txt/msg00018.txt.bz2 >>>>> "Michel" == Michel METZGER writes: Michel> I'm having some issues with debugging an application compiled Michel> with g++ 4.1.2 The type names for structures appear in gdb as Michel> ".0", ".1", etc. [...] Michel> A more recent version of gdb (7.1) gives the same results. Michel> A more recent version of gcc (4.5.1) gives the expected results. Michel> Any idea? I would suggest looking at the debuginfo. You can do this with "readelf -wi". If that shows the strange names, then it is a compiler bug. Tom