Gcc compilers build c++filt during installation. So all the source is "somewhere" available to use it from own progs.
What I want to achieve:
I read some elf files and get also the symbols, no problem. For c++ generated elf files, I see the mangled names as expected. Now I want to make my program output a bit more convenient and include c++filt functionality into my program. It makes no sense to parse my really huge output throw the external c++filt program.
Has someone an idea where to catch the source files of the demangler from the gcc sources or is there already some shared object or static library which I can pick?
In my case I need it for avr-gcc if the target makes c++filt specific.