Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unmangling C++ names on Mac 10.5

Tags:

macos

c++filt

I'm printing out the stack trace in my app at various points to debug a problem, which works fine except that the symbol names of my c++ functions are still mangled. On linux I use c++filt to convert them to something more readable... on mac... it doesn't work?!?!

macbook:matthew$ c++filt _ZN10GSemaphore6UnlockEv
_ZN10GSemaphore6UnlockEv

Even the example supplied in the man page doesn't work. What gives?

like image 805
fret Avatar asked Mar 11 '10 11:03

fret


1 Answers

~:1684$ c++filt -n _ZN10GSemaphore6UnlockEv
GSemaphore::Unlock()
like image 52
kennytm Avatar answered Oct 18 '22 18:10

kennytm