diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-08-24 16:26:11 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-06 11:46:38 -0400 |
| commit | aafd0ec4e21bfe8a5cd8ef9d61e65fbf57d86a81 (patch) | |
| tree | 9eccdd4b5d17cb187e939aec6e81a3278e2f17e8 /python/basicblock.py | |
| parent | ce57ec2d17b33bdc8bd244d5cf9fc411042cb57d (diff) | |
Fix BasicBlock.can_exit
Diffstat (limited to 'python/basicblock.py')
| -rw-r--r-- | python/basicblock.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/python/basicblock.py b/python/basicblock.py index 47021e66..6d67c91b 100644 --- a/python/basicblock.py +++ b/python/basicblock.py @@ -268,7 +268,7 @@ class BasicBlock: @can_exit.setter def can_exit(self, value): """Sets whether basic block can return or is tagged as 'No Return'""" - BNBasicBlockSetCanExit(self.handle, value) + core.BNBasicBlockSetCanExit(self.handle, value) @property def has_invalid_instructions(self) -> bool: @@ -548,11 +548,3 @@ class BasicBlock: start = ctypes.c_uint64() ret:bool = core.BNGetBasicBlockInstructionContainingAddress(self.handle, addr, start) return ret, start.value - - @property - def source_block(self): - """Source of this basic block (read-only)""" - result = core.BNGetBasicBlockSourceBlock(self.handle) - if not result: - return None - return self._create_instance(result, self.view) |
