Unmangling C++ names on Mac 10.5

流过昼夜 提交于 2019-11-30 01:39:08

问题


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?


回答1:


~:1684$ c++filt -n _ZN10GSemaphore6UnlockEv
GSemaphore::Unlock()


来源:https://stackoverflow.com/questions/2424576/unmangling-c-names-on-mac-10-5

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!