I’m trying to figure out the type of the parameters passed to a function.
I want to do this using the mangled name of the function.
For example the following function has the parameters
_ZN7MyClass3funEP14AnAwesomeClass
MyClass* this, AnAwesomeClass* p1
I now want to generate a function call to the toString member function of each passed parameter.
E.g.
_ZN7MyClass7toStringEv
and
_ZN14AnAwesomeClass7toStringEv
It is not very hard to demangle a name. But how do I extract the parameters and remangle them into a new function name?
Any idea on how to achieve this?
Thanks
a few ways: