Given a .so file and function name, is there any simple way to find the function’s signature through bash?
Return example:
@_ZN9CCSPlayer10SwitchTeamEi
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
My compiler mangles things a little different to yours (OSX g++) but changing your leading @ to an underscore and passing the result to c++filt gives me the result that I think you want:
doing the reverse is trickier as CCSPlayer could be a namespace or a class (and I suspect they’re mangled differently). However since you have the .so you can do this:
Though you might need to be a bit careful about getting some extra results. ( There are some funny symbols in those .so files sometimes)