From cd6bf1e82170328a1c68c515ce438f5ed977a246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Fri, 18 Dec 2020 19:23:37 +0100 Subject: [PATCH] tools/rename_functions_in_ida: Drop support for IDA <7.4 --- tools/rename_functions_in_ida.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/rename_functions_in_ida.py b/tools/rename_functions_in_ida.py index 209cdb62..55733076 100644 --- a/tools/rename_functions_in_ida.py +++ b/tools/rename_functions_in_ida.py @@ -1,6 +1,5 @@ # Renames functions in an IDA database to match the function names # in the decompiled source code. -# This script needs to be compatible with Python 2.7. import csv import idc @@ -22,4 +21,4 @@ with open(csv_path, "r") as f: if decomp_name[-1] in MARKERS: decomp_name = decomp_name[:-1] - idc.MakeName(addr, decomp_name) + idc.set_name(addr, decomp_name)