def gui_rename_function(function_address):
"""
Interactive rename of a function in the IDB.
"""
original_name = get_function_name(function_address)
# prompt the user for a new function name
ok, new_name = prompt_string(
"Please enter function name",
"Rename Function",
original_name
)
#
# if the user clicked cancel, or the name they entered
# is identical to the original, there's nothing to do
#
if not (ok or new_name != original_name):
return
# rename the function
idaapi.set_name(function_address, new_name, idaapi.SN_NOCHECK)
评论列表
文章目录