From d4f7a4b26baee92d273328a6b24d90f23a9a6c2f Mon Sep 17 00:00:00 2001 From: Xusheng Date: Wed, 9 Apr 2025 12:58:58 +0800 Subject: Expose AnalysisState through the API --- python/binaryview.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/binaryview.py') diff --git a/python/binaryview.py b/python/binaryview.py index b0ca13ef..10cd2fea 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -3371,6 +3371,11 @@ class BinaryView: result = core.BNGetAnalysisProgress(self.handle) return AnalysisProgress(result.state, result.count, result.total) + @property + def analysis_state(self) -> AnalysisState: + """State of current analysis (read-only)""" + return core.BNGetAnalysisState(self.handle) + @property def linear_disassembly(self) -> Iterator['lineardisassembly.LinearDisassemblyLine']: """Iterator for all lines in the linear disassembly of the view""" -- cgit v1.3.1