I open .exe file in IDA with .pdb attached to it, so IDA scans .pdb and shows function names.
I need to get signature strings of many functions. I can't do it manually so I want to use built-it IDA Python console
For example: function on address
00007FF68E528660 has signature
int __fastcall lua_error(lua_State *L)
I got my function address (ea)
def GetFunctionByName(name): ea = BeginEA() for funcAddr in Functions(SegStart(ea), SegEnd(ea)): funcName = GetFunctionName(funcAddr) if funcName == name: return funcAddr return None print function_i_need(GetFunctionByName("lua_error")) #should print "int __fastcall lua_error(lua_State *L)" or something familiar
I don't know how to implement
How do I get that signature string using python code?