summaryrefslogtreecommitdiff
path: root/python/architecture.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2017-01-02 15:19:47 -0500
committerPeter LaFosse <peter@vector35.com>2017-01-02 15:19:47 -0500
commit842aba557f24ca9ab63f05cec6aa0c0efebd51b4 (patch)
tree484981f9b580958b647da146fd17be34a366d442 /python/architecture.py
parent9ad395e9d45d18734f1afbf208c80bdafa6a7a3d (diff)
Making platform and architecture optional parameters where possible
Diffstat (limited to 'python/architecture.py')
-rw-r--r--python/architecture.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/architecture.py b/python/architecture.py
index 0cdba6e5..5162e58a 100644
--- a/python/architecture.py
+++ b/python/architecture.py
@@ -1152,6 +1152,12 @@ class Architecture(object):
core.BNFreeInstructionText(tokens, count.value)
return result, length.value
+ def get_instruction_low_level_il_instruction(self, bv, addr):
+ il = lowlevelil.LowLevelILFunction(self)
+ data = bv.read(addr, self.max_instr_length)
+ self.get_instruction_low_level_il(data, addr, il)
+ return il[0]
+
def get_instruction_low_level_il(self, data, addr, il):
"""
``get_instruction_low_level_il`` appends LowLevelILExpr objects for the instruction at the given virtual