summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2017-08-28 17:04:24 -0400
committerBrian Potchik <brian@vector35.com>2017-08-28 17:04:24 -0400
commit09af54fba214ee5e0baf6a9bacce0ceebbd34deb (patch)
tree358e3a408ae5a230bede71758c9e1e131a0ca835 /python
parentda388dd42cdee70facb084b3012214ca33014fa7 (diff)
Add AddAnalysisOption API to support Initial LinearSweep Core.
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index bf8a87e0..d002b38f 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -1831,6 +1831,22 @@ class BinaryView(object):
"""
core.BNRemoveUserFunction(self.handle, func.handle)
+ def add_analysis_option(self, name):
+ """
+ ``add_analysis_option`` adds an analysis option. Analysis options elaborate the analysis phase. The user must
+ start analysis by calling either ``update_analysis()`` or ``update_analysis_and_wait()``.
+
+ :param str name: name of the analysis option. Available options:
+ "linearsweep" : apply linearsweep analysis during the next analysis update (run-once semantics)
+
+ :rtype: None
+ :Example:
+
+ >>> bv.add_analysis_option("linearsweep")
+ >>> bv.update_analysis_and_wait()
+ """
+ core.BNAddAnalysisOption(self.handle, name)
+
def update_analysis(self):
"""
``update_analysis`` asynchronously starts the analysis running and returns immediately. Analysis of BinaryViews