Skip to content

Commit 1cdc2eb

Browse files
committed
[fix] decomp: partial fix for function names registered with param typing in quokka
1 parent b573c56 commit 1cdc2eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/pyrrha_mapper/exedecomp/binmapper.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ def find_all_call_references(
100100

101101
# iterate each calls and try to find them in the line
102102
for cname, caddr in call_name_to_addr.items():
103-
col = line.find(f"{cname}(")
103+
if cname.endswith(")"): # to handle cases of func name with typing of parameter
104+
name = cname.split("(")[0]
105+
else:
106+
name = cname
107+
col = line.find(f"{name}(")
104108
if col != -1:
105109
matches[col] = (caddr, cname)
106110

0 commit comments

Comments
 (0)