From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6486 invoked by alias); 10 Mar 2004 18:46:34 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 6477 invoked from network); 10 Mar 2004 18:46:32 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 10 Mar 2004 18:46:32 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i2AIkV07019688 for ; Wed, 10 Mar 2004 13:46:32 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i2AIkVM14076 for ; Wed, 10 Mar 2004 13:46:31 -0500 Received: from cygbert.vinschen.de (vpn50-12.rdu.redhat.com [172.16.50.12]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id i2AIkTR18901 for ; Wed, 10 Mar 2004 10:46:30 -0800 Received: by cygbert.vinschen.de (Postfix, from userid 500) id BE720580E2; Wed, 10 Mar 2004 19:46:23 +0100 (CET) Date: Fri, 19 Mar 2004 00:09:00 -0000 From: Corinna Vinschen To: gdb-patches@sources.redhat.com Subject: Re: [RFA] minsyms.c: Fix switching to GNU v3 ABI Message-ID: <20040310184623.GU25204@cygbert.vinschen.de> Reply-To: gdb-patches@sources.redhat.com Mail-Followup-To: gdb-patches@sources.redhat.com References: <20040310105709.GJ25204@cygbert.vinschen.de> <20040310150822.GA31014@nevyn.them.org> <20040310155450.GN25204@cygbert.vinschen.de> <20040310160410.GA410@nevyn.them.org> <20040310161617.GO25204@cygbert.vinschen.de> <20040310162011.GA1067@nevyn.them.org> <20040310163416.GP25204@cygbert.vinschen.de> <20040310163716.GA2114@nevyn.them.org> <20040310175446.GR25204@cygbert.vinschen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i X-RedHat-Spam-Score: -4.9 X-SW-Source: 2004-03/txt/msg00247.txt.bz2 On Mar 10 13:30, Ian Lance Taylor wrote: > Corinna Vinschen writes: > > > On Mar 10 11:37, Daniel Jacobowitz wrote: > > > What's the one symbol with just one underscore? > > > > _ZZN9__gnu_cxx27__verbose_terminate_handlerEvE11terminating > > That should be investigated further, as it probably indicates a gcc > bug. > > Consider this source code: > > void __verbose_terminate_handler() > { > static int terminating = 0; > if (terminating) > { > return; > } > terminating = 1; > } > > If you compile it as a C file, do you see the initial underscore on > "terminating". If you compile it as a C++ file, do you see two > initial underscores before the 'Z'? It should be consistent. It seems to be consistent: $ nm x.c.o 00000000 T ___verbose_terminate_handler 00000000 b terminating.0 $ nm x.cc.o 00000000 b _ZZ27__verbose_terminate_handlervE11terminating 00000000 T __Z27__verbose_terminate_handlerv Corinna -- Corinna Vinschen Cygwin Developer Red Hat, Inc. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6486 invoked by alias); 10 Mar 2004 18:46:34 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 6477 invoked from network); 10 Mar 2004 18:46:32 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 10 Mar 2004 18:46:32 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i2AIkV07019688 for ; Wed, 10 Mar 2004 13:46:32 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i2AIkVM14076 for ; Wed, 10 Mar 2004 13:46:31 -0500 Received: from cygbert.vinschen.de (vpn50-12.rdu.redhat.com [172.16.50.12]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id i2AIkTR18901 for ; Wed, 10 Mar 2004 10:46:30 -0800 Received: by cygbert.vinschen.de (Postfix, from userid 500) id BE720580E2; Wed, 10 Mar 2004 19:46:23 +0100 (CET) Date: Wed, 10 Mar 2004 18:46:00 -0000 From: Corinna Vinschen To: gdb-patches@sources.redhat.com Subject: Re: [RFA] minsyms.c: Fix switching to GNU v3 ABI Message-ID: <20040310184623.GU25204@cygbert.vinschen.de> Reply-To: gdb-patches@sources.redhat.com Mail-Followup-To: gdb-patches@sources.redhat.com References: <20040310105709.GJ25204@cygbert.vinschen.de> <20040310150822.GA31014@nevyn.them.org> <20040310155450.GN25204@cygbert.vinschen.de> <20040310160410.GA410@nevyn.them.org> <20040310161617.GO25204@cygbert.vinschen.de> <20040310162011.GA1067@nevyn.them.org> <20040310163416.GP25204@cygbert.vinschen.de> <20040310163716.GA2114@nevyn.them.org> <20040310175446.GR25204@cygbert.vinschen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i X-RedHat-Spam-Score: -4.9 X-SW-Source: 2004-03.o/txt/msg00247.txt Message-ID: <20040310184600.sU3_2CEwR74JfJ6mpbxps2Okvvt_DRjddK-K4QgQzQE@z> On Mar 10 13:30, Ian Lance Taylor wrote: > Corinna Vinschen writes: > > > On Mar 10 11:37, Daniel Jacobowitz wrote: > > > What's the one symbol with just one underscore? > > > > _ZZN9__gnu_cxx27__verbose_terminate_handlerEvE11terminating > > That should be investigated further, as it probably indicates a gcc > bug. > > Consider this source code: > > void __verbose_terminate_handler() > { > static int terminating = 0; > if (terminating) > { > return; > } > terminating = 1; > } > > If you compile it as a C file, do you see the initial underscore on > "terminating". If you compile it as a C++ file, do you see two > initial underscores before the 'Z'? It should be consistent. It seems to be consistent: $ nm x.c.o 00000000 T ___verbose_terminate_handler 00000000 b terminating.0 $ nm x.cc.o 00000000 b _ZZ27__verbose_terminate_handlervE11terminating 00000000 T __Z27__verbose_terminate_handlerv Corinna -- Corinna Vinschen Cygwin Developer Red Hat, Inc.