summaryrefslogtreecommitdiff
path: root/python/scriptingprovider.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2017-10-30 21:21:48 -0400
committerPeter LaFosse <peter@vector35.com>2017-11-06 16:32:06 -0500
commit149ee581fe11a806fcd38e8220141007556bc85c (patch)
tree23c3cf08605c8d09c4d0dbb4ee9e5072db0bedb9 /python/scriptingprovider.py
parentecb96a16443a45b0ebd463e831be8ca3be9f7f61 (diff)
add current_llil and current_mlil scripting console aliases
Diffstat (limited to 'python/scriptingprovider.py')
-rw-r--r--python/scriptingprovider.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py
index ed9688b9..211d2fb7 100644
--- a/python/scriptingprovider.py
+++ b/python/scriptingprovider.py
@@ -540,6 +540,8 @@ class PythonScriptingInstance(ScriptingInstance):
self.locals["current_address"] = self.active_addr
self.locals["here"] = self.active_addr
self.locals["current_selection"] = (self.active_selection_begin, self.active_selection_end)
+ self.locals["current_llil"] = self.active_func.low_level_il
+ self.locals["current_mlil"] = self.active_func.medium_level_il
self.interpreter.runsource(code)