diff options
| author | Xusheng <xusheng@vector35.com> | 2021-02-16 18:34:59 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2021-04-16 13:40:55 +0800 |
| commit | b6feff3f3d3bdcb4bea983a085f4ed794e186940 (patch) | |
| tree | b41a84f4dac229f21609932c7b5ec0d29507fa4f /python | |
| parent | e8b9e5e4520522bcfcd5b2ed2b343892f171d750 (diff) | |
add a DisassemblySettings* parameter to MLIL/HLIL functions that retrieve instruction/expr text
Diffstat (limited to 'python')
| -rw-r--r-- | python/highlevelil.py | 2 | ||||
| -rw-r--r-- | python/mediumlevelil.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/python/highlevelil.py b/python/highlevelil.py index 1dc8a077..046d73a6 100644 --- a/python/highlevelil.py +++ b/python/highlevelil.py @@ -378,7 +378,7 @@ class HighLevelILInstruction(object): def lines(self): """HLIL text lines (read-only)""" count = ctypes.c_ulonglong() - lines = core.BNGetHighLevelILExprText(self._function.handle, self._expr_index, self._as_ast, count) + lines = core.BNGetHighLevelILExprText(self._function.handle, self._expr_index, self._as_ast, count, None) result = [] for i in range(0, count.value): addr = lines[i].addr diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index 65b90177..8d552b64 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -403,11 +403,11 @@ class MediumLevelILInstruction(object): if ((self._instr_index is not None) and (self._function.source_function is not None) and (self._expr_index == core.BNGetMediumLevelILIndexForInstruction(self._function.handle, self._instr_index))): if not core.BNGetMediumLevelILInstructionText(self._function.handle, self._function.source_function.handle, - self._function.arch.handle, self._instr_index, tokens, count): + self._function.arch.handle, self._instr_index, tokens, count, None): return None else: if not core.BNGetMediumLevelILExprText(self._function.handle, self._function.arch.handle, - self._expr_index, tokens, count): + self._expr_index, tokens, count, None): return None result = binaryninja.function.InstructionTextToken.get_instruction_lines(tokens, count.value) core.BNFreeInstructionText(tokens, count.value) |
