This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16843] GDB relies on the mangled name of a subprogram to be a prefix of the enclosing class name


https://sourceware.org/bugzilla/show_bug.cgi?id=16843

--- Comment #2 from David Blaikie <dblaikie at gmail dot com> ---
(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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]