From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13519 invoked by alias); 2 Nov 2010 19:53:33 -0000 Received: (qmail 13509 invoked by uid 22791); 2 Nov 2010 19:53:32 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from eu1sys200aog103.obsmtp.com (HELO eu1sys200aog103.obsmtp.com) (207.126.144.115) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Nov 2010 19:53:27 +0000 Received: from source ([167.4.1.35]) (using TLSv1) by eu1sys200aob103.postini.com ([207.126.147.11]) with SMTP ID DSNKTNBsMp+MoxmpgwIWlubudp/rXSSXFHwN@postini.com; Tue, 02 Nov 2010 19:53:27 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.80.115]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 763276F; Tue, 2 Nov 2010 19:53:21 +0000 (GMT) Received: from Webmail-eu.st.com (safex1hubcas3.st.com [10.75.90.18]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 6E80229E; Tue, 2 Nov 2010 19:53:20 +0000 (GMT) Received: from SAFEX1MAIL1.st.com ([10.75.90.1]) by SAFEX1HUBCAS3.st.com ([10.75.90.18]) with mapi; Tue, 2 Nov 2010 20:52:58 +0100 From: Michel METZGER To: Tom Tromey Cc: "gdb@sourceware.org" Date: Tue, 02 Nov 2010 19:53:00 -0000 Subject: RE: Bad struct name in gdb with g++ 4.1.2 Message-ID: <5B4CE209869C6A4797F5FAA0B348F0A0D9EA8C20EB@SAFEX1MAIL1.st.com> References: <5B4CE209869C6A4797F5FAA0B348F0A0D9EA8C20A7@SAFEX1MAIL1.st.com> In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes 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/msg00019.txt.bz2 readelf -wi gives me the following=20 [...] <1><66>: Abbrev Number: 2 (DW_TAG_structure_type) DW_AT_sibling : <8e> DW_AT_name : ._0 DW_AT_byte_size : 8 DW_AT_decl_file : 3 DW_AT_decl_line : 1 [...] This is a compiler bug then. Thanks, Michel -----Original Message----- From: Tom Tromey [mailto:tromey@redhat.com]=20 Sent: Tuesday, November 02, 2010 3:41 PM To: Michel METZGER Cc: gdb@sourceware.org Subject: Re: Bad struct name in gdb with g++ 4.1.2 >>>>> "Michel" =3D=3D 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