diff options
| author | Rusty Wagner <rusty@vector35.com> | 2018-03-06 19:33:00 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2018-03-07 18:11:24 -0500 |
| commit | 352949f41ea0b66c833f272d2a2a1e5a77a9507c (patch) | |
| tree | 0a35cc43b10db10f8449326e14541906214a4353 /python | |
| parent | 0539a9ebe89a64dda7ab5bce3caa7eb8682d98a5 (diff) | |
Automatically update analysis after commands in interactive Python
Diffstat (limited to 'python')
| -rw-r--r-- | python/scriptingprovider.py | 4 |
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: |
