From aafd0ec4e21bfe8a5cd8ef9d61e65fbf57d86a81 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Tue, 24 Aug 2021 16:26:11 -0400 Subject: Fix BasicBlock.can_exit --- python/basicblock.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'python') 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) -- cgit v1.3.1