Forums >> IDA Pro >> Is there any function in the SDK that can change the name of a fucntion?
Topic created on: April 27, 2008 08:06 CDT by nichom.
I tried the set_name function in name.hpp, but it seems that this function can only be applied to thoes functions that with the name like "Sub_XXX".
Thanks!
Not sure how you are using set_name() as it should be very straight forward in its usage. Can you provide a an example of how you are using the function?
do you use set_name(ea_t ea, const char *name, int flag) or set_name(ea_t ea, const char *name)?
anyway, it should work. there is a few problems with auto-generate names (you rename it, and the name is renamed again by IDA unless you clean auto-generate flag).
please, show your code and dump the function body to IDC-script (select function body, File/Produce output file/Dump database to IDC file..., don't worry about security and privacy! as you can see, the dumped file has nothing personal info, nor code of the function, just types, attributes, name, etc).