tools/rename_functions_in_ida: Drop support for IDA <7.4

This commit is contained in:
Léo Lam 2020-12-18 19:23:37 +01:00
parent a92b163884
commit cd6bf1e821
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
# Renames functions in an IDA database to match the function names # Renames functions in an IDA database to match the function names
# in the decompiled source code. # in the decompiled source code.
# This script needs to be compatible with Python 2.7.
import csv import csv
import idc import idc
@ -22,4 +21,4 @@ with open(csv_path, "r") as f:
if decomp_name[-1] in MARKERS: if decomp_name[-1] in MARKERS:
decomp_name = decomp_name[:-1] decomp_name = decomp_name[:-1]
idc.MakeName(addr, decomp_name) idc.set_name(addr, decomp_name)