vmprof-python icon indicating copy to clipboard operation
vmprof-python copied to clipboard

Could C++ symbols be demangled?

Open anntzer opened this issue 8 years ago • 1 comments

All's in the title, I believe... Thanks!

anntzer avatar Jul 14 '17 04:07 anntzer

Yes could be done. Though it would need a special demangling for each compiler.

class Test {
    public:
        Test();
        void foo();
}

If you compile a cpp file to an object file and lookup the symbol it would return _ZN4Test3fooEv for the function void foo(). This is different for each compiler. There might be demangling tools that we could use. Patches welcome!

planrich avatar Jul 15 '17 12:07 planrich