summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2017-08-04 16:22:25 -0400
committerPeter LaFosse <peter@vector35.com>2017-08-04 16:22:25 -0400
commit92ef6481d84d3289ba86a9b9ffe6553bb5842c5d (patch)
tree468cded0aed918cae084b5250d3d98ba9bfab544 /python
parentee34b3e1ad9536ff3530489afde88f9161fa6967 (diff)
Use the basic block's arch not the view's arch
Diffstat (limited to 'python')
-rw-r--r--python/basicblock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/basicblock.py b/python/basicblock.py
index 4a5caa14..fc7a870e 100644
--- a/python/basicblock.py
+++ b/python/basicblock.py
@@ -274,8 +274,8 @@ class BasicBlock(object):
idx = start
while idx < end:
data = self.view.read(idx, 16)
- inst_info = self.view.arch.get_instruction_info(data, idx)
- inst_text = self.view.arch.get_instruction_text(data, idx)
+ inst_info = self.arch.get_instruction_info(data, idx)
+ inst_text = self.arch.get_instruction_text(data, idx)
yield inst_text
idx += inst_info.length