Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to demangle symbols using C++Filt

📅 2014-Jun-23 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ binutils, cpp, cppfilt, mangling ⬩ 📚 Archive

C++Filt is a utility that ships with GNU Binutils. It can be applied on mangled symbols to recover back the demangled symbol. This can be useful to recognize the original class method name and signature.

There are two ways in which this tool can be used:

$ c++filt _ZNK8KxVectorI6DlAtomjEixEj
KxVector<DlAtom, unsigned int>::operator[](unsigned int) const
$ symtree foo | c++filt

Tried with: GNU Binutils 2.24 and Ubuntu 14.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧