summaryrefslogtreecommitdiff
path: root/python/examples/instruction-iterator.py
diff options
context:
space:
mode:
authorbambu <bambu@revengsec.com>2016-07-02 14:34:31 -0400
committerbambu <bambu@revengsec.com>2016-07-02 14:34:31 -0400
commit46fe170c40dd0de44b83ebbce673462b5de8760c (patch)
tree104943992de2f194c7e2c6cf46f3153b98fbb133 /python/examples/instruction-iterator.py
parent5abb8218e5cd2be9b4cefb16eebdee6caf8108c6 (diff)
parenta7eaa72caa4a5e3e7cd7ea7c32236c93b06d1442 (diff)
Merge remote-tracking branch 'upstream/dev' into dev
Diffstat (limited to 'python/examples/instruction-iterator.py')
-rw-r--r--python/examples/instruction-iterator.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/python/examples/instruction-iterator.py b/python/examples/instruction-iterator.py
index 7b03b095..43bc000e 100644
--- a/python/examples/instruction-iterator.py
+++ b/python/examples/instruction-iterator.py
@@ -21,10 +21,7 @@ else:
target = "/bin/ls"
bv = binaryninja.BinaryViewType[bintype].open(target)
-bv.update_analysis()
-
-"""Until update_analysis_and_wait is complete, sleep is necessary as the analysis is multi-threaded."""
-time.sleep(1)
+bv.update_analysis_and_wait()
print "-------- %s --------" % target
print "START: 0x%x" % bv.start