How can I see symbols of (C and C++) binary on linux?

Which tools do you guys use? How do demangle c++ symbols do be able to pass it to profiler tools, such as opannotate?

Thanks


Use nm to see all symbols and c++filt to demangle.

Example:

nm -an foo | c++filt