summaryrefslogtreecommitdiff
path: root/python/scriptingprovider.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2018-03-06 19:33:00 -0500
committerPeter LaFosse <peter@vector35.com>2018-03-23 17:10:06 -0400
commitc183be59f14f6a672bc3eb3cab82851c43bec55a (patch)
tree0a35cc43b10db10f8449326e14541906214a4353 /python/scriptingprovider.py
parentb14470ef3908e56b98be6c8bb5d895276e02d65c (diff)
Automatically update analysis after commands in interactive Python
Diffstat (limited to 'python/scriptingprovider.py')
-rw-r--r--python/scriptingprovider.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py
index c92c249a..e7838748 100644
--- a/python/scriptingprovider.py
+++ b/python/scriptingprovider.py
@@ -540,7 +540,7 @@ 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)
- if self.active_func == None:
+ if self.active_func is None:
self.locals["current_llil"] = None
self.locals["current_mlil"] = None
else:
@@ -556,6 +556,8 @@ class PythonScriptingInstance(ScriptingInstance):
elif self.locals["current_address"] != self.active_addr:
if not self.active_view.file.navigate(self.active_view.file.view, self.locals["current_address"]):
sys.stderr.write("Address 0x%x is not valid for the current view\n" % self.locals["current_address"])
+ if self.active_view is not None:
+ self.active_view.update_analysis()
except:
traceback.print_exc()
finally: