From 09af54fba214ee5e0baf6a9bacce0ceebbd34deb Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Mon, 28 Aug 2017 17:04:24 -0400 Subject: Add AddAnalysisOption API to support Initial LinearSweep Core. --- python/binaryview.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'python') 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 -- cgit v1.3.1