在Mac 10.5上取消C ++名称 [英] Unmangling C++ names on Mac 10.5

查看:87
本文介绍了在Mac 10.5上取消C ++名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将在各个位置打印出应用程序中的堆栈跟踪信息以调试问题,除了我的c ++函数的符号名称仍被破坏之外,该方法工作正常.在linux上,我使用c ++ filt将它们转换为更易读的内容...在mac上...不起作用?!?!

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?

推荐答案

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

这篇关于在Mac 10.5上取消C ++名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆