summaryrefslogtreecommitdiff
path: root/python/basicblock.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-09-28 11:42:31 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-28 13:24:42 -0400
commit9bf2230feab70d83e65b9ed1f5c45dd3c9344905 (patch)
tree8df27a22663cfae76ea6a00feac1095f93efdd77 /python/basicblock.py
parentf0d4359fb1d7cd209db161c022be3ed0643bff89 (diff)
Fix BasicBlock iteration for arm/thumb
Diffstat (limited to 'python/basicblock.py')
-rw-r--r--python/basicblock.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/basicblock.py b/python/basicblock.py
index 3854ffd5..413199a7 100644
--- a/python/basicblock.py
+++ b/python/basicblock.py
@@ -141,7 +141,7 @@ class BasicBlock:
self._instLengths = []
start = self.start
while start < self.end:
- length = self.view.get_instruction_length(start)
+ length = self.view.get_instruction_length(start, self.arch)
if length == 0: # invalid instruction. avoid infinite loop
break
self._instLengths.append(length)