I am looking for a python library for linux which can demangle the function names which are mangled by MSVC. for example :



Project!public: __thiscall std::allocator::allocator(void)

I found that IDAPython has an API for this but I don't know how to use IDAPython in linux.

  • 2
  • I need a library of python. These are acceptable as a C++ executable solution. There is also undname.exe from MSVC which does all the work but its an EXE file so I can't use that. – in3o Jun 22 '15 at 6:32
  • From the answer @Dominik linked to, but first thing I thought as well: "Name-mangling is implementation-specific. Which compiler are you interested in?" See kegel.com/mangle.html for a good introduction. – Jongware Jun 22 '15 at 9:12
  • 1
    yeah. i know. thats why i mentioned msvc in the problem description. – in3o Jun 22 '15 at 12:51
  • So what's wrong with the linked solution? Why can't a Python library (I presume you mean Python module) call external binaries? Besides, you didn't mention you were looking for a pure Python solution. Especially since the provided links give clues how to implement it in pure Python, if that's what you absolutely want. This site isn't for recommendations about software and I can't see what's wrong with Dominik's links for example. – 0xC0000022L Jun 15 '18 at 20:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.