diff options
| author | Glenn Smith <glenn@vector35.com> | 2025-06-19 16:23:09 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2025-07-01 12:52:07 -0400 |
| commit | dc9ddca46f19e31384e4e30863570a8552e4bd8c (patch) | |
| tree | e637d0152e5e0d84d142b04b094de702d06de1fe /python/lowlevelil.py | |
| parent | 1e23ec1a78885fc952e27bf41cee1d5c59b7dbca (diff) | |
Python: Report get_instruction_start returns InstructionIndex
Diffstat (limited to 'python/lowlevelil.py')
| -rw-r--r-- | python/lowlevelil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py index 338eba68..79919efe 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -3784,13 +3784,13 @@ class LowLevelILFunction: `LowLevelILFunction.ssa_reg_stacks_without_versions`, and `LowLevelILFunction.ssa_flags_without_versions`""" return self.ssa_regs_without_versions + self.ssa_reg_stacks_without_versions + self.ssa_flags_without_versions - def get_instruction_start(self, addr: int, arch: Optional['architecture.Architecture'] = None) -> Optional[int]: + def get_instruction_start(self, addr: int, arch: Optional['architecture.Architecture'] = None) -> Optional[InstructionIndex]: if arch is None: arch = self.arch result = core.BNLowLevelILGetInstructionStart(self.handle, arch.handle, addr) if result >= core.BNGetLowLevelILInstructionCount(self.handle): return None - return result + return InstructionIndex(result) def clear_indirect_branches(self) -> None: core.BNLowLevelILClearIndirectBranches(self.handle) |
