From 92ef6481d84d3289ba86a9b9ffe6553bb5842c5d Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 4 Aug 2017 16:22:25 -0400 Subject: Use the basic block's arch not the view's arch --- python/basicblock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/basicblock.py') 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 -- cgit v1.3.1