tools: Add unknown call hook to FunctionChecker

This commit is contained in:
Léo Lam 2020-12-28 19:27:28 +01:00
parent 17c7e12a0b
commit fcc062ec30
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 4 additions and 0 deletions

View File

@ -205,6 +205,7 @@ class FunctionChecker:
def _check_function_call(self, i1, i2, orig_addr: int, decomp_addr: int) -> bool:
name = self.decompiled_fns.get(orig_addr, None)
if name is None:
self.on_unknown_fn_call(orig_addr, decomp_addr)
return True
decomp_symbol = self.my_symtab[name]
@ -215,3 +216,6 @@ class FunctionChecker:
self._set_mismatch_cause(i1, i2, f"function call mismatch: {name}")
return False
def on_unknown_fn_call(self, orig_addr: int, decomp_addr: int) -> None:
pass