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

vehomzzz picture vehomzzz · Sep 4, 2009 · Viewed 38.6k times · Source

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

Thanks

Answer

Dan Moulding picture Dan Moulding · Sep 4, 2009

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

Example:

nm -an foo | c++filt