From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17693 invoked by alias); 15 Apr 2014 20:43:26 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 17657 invoked by uid 48); 15 Apr 2014 20:43:25 -0000 From: "dblaikie at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/16843] GDB relies on the mangled name of a subprogram to be a prefix of the enclosing class name Date: Tue, 15 Apr 2014 20:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dblaikie at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q2/txt/msg00062.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16843 --- Comment #2 from David Blaikie --- (In reply to Gary Benson from comment #1) > David, I don't have a copy of Clang to hand. Could you run nm on the object > files you have generated with GCC and Clang and paste the mangled symbol > names here please? Hmm, I'm not sure if that's relevant (I'm wondering if perhaps I did a poor job explaining the problem - or I just don't understand it at all), but the default output of "nm" for the two object files no matter whether they're compiled with GCC or Clang is: src1.cpp: 0000000000000000 T _Z4funcv 0000000000000000 W _ZN3fooILc1EE3memEv 0000000000000000 b _ZZ4funcvE1f src2.cpp: U _Z4funcv 0000000000000000 T main -- You are receiving this mail because: You are on the CC list for the bug.