From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8193 invoked by alias); 18 Nov 2004 09:25:07 -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 7983 invoked from network); 18 Nov 2004 09:25:00 -0000 Received: from unknown (HELO vulpecula.futurs.inria.fr) (195.83.212.5) by sourceware.org with SMTP; 18 Nov 2004 09:25:00 -0000 Received: from ulysse.futurs.inria.fr (ulysse.futurs.inria.fr [195.83.212.185]) by vulpecula.futurs.inria.fr (Postfix) with ESMTP id 4FB276240B for ; Thu, 18 Nov 2004 10:14:18 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by ulysse.futurs.inria.fr (8.13.0/8.11.1) with ESMTP id iAI9OxKp015210 for ; Thu, 18 Nov 2004 10:24:59 +0100 Message-ID: <419C6A6B.4040508@kma.eu.org> Date: Thu, 18 Nov 2004 21:22:00 -0000 From: Grumble User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040916 MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Struct fields printed in a strange way Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-11/txt/msg00189.txt.bz2 Hello all, gdb seems slightly confused when the name of a struct field is suffixed with "__0". $ cat foo.c struct foo { double x__0, y__0, z__1; } bar; int main(void) { return 0; } $ gcc-3.3.2 -Wall -ansi -pedantic -g3 foo.c $ gdb a.out GNU gdb 6.0-2mdk (Mandrake Linux) Copyright 2003 Free Software Foundation, Inc. [...] This GDB was configured as "i586-mandrake-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) print bar $1 = {::x(void) = 0, ::y(void) = 0, z__1 = 0} (gdb) show language The current source language is "auto; currently c". Why is x__0 changed to ::x(void)? Is the "__0" suffix reserved in gdb? -- Regards, Grumble