c++filt

c++filt not aggressive enough for some of the mangled names in PTX files

大兔子大兔子 提交于 2019-12-11 04:14:42
问题 I'm filtering my compiled PTX through c++filt, but it only demangles some of the names/labels and leaves some as-is. For example, this: func (.param .b32 func_retval0) _ZN41_INTERNAL_19_gather_bits_cpp1_ii_56538e7c6__shflEiii( .param .b32 _ZN41_INTERNAL_19_gather_bits_cpp1_ii_56538e7c6__shflEiii_param_0, .param .b32 _ZN41_INTERNAL_19_gather_bits_cpp1_ii_56538e7c6__shflEiii_param_1, .param .b32 _ZN41_INTERNAL_19_gather_bits_cpp1_ii_56538e7c6__shflEiii_param_2 ) is demangled as this: .func (

c++filt does not demangle typeid name

馋奶兔 提交于 2019-12-10 13:23:09
问题 I am running a code on GCC C++ compiler, to output the type_info::name: #include <iostream> #include <typeinfo> using namespace std; class shape { protected: int color; public: virtual void draw() = 0; }; class Circle: public shape { protected: int color; public: Circle(int a = 0): color(a) {}; void draw(); }; void Circle::draw() { cout<<"color: "<<color<<'\n'; } class triangle: public shape { protected: int color; public: triangle(int a = 0): color(a) {}; void draw(); }; void triangle::draw(

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:/