summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2025-04-09 12:58:58 +0800
committerXusheng <xusheng@vector35.com>2025-04-09 12:58:58 +0800
commitd4f7a4b26baee92d273328a6b24d90f23a9a6c2f (patch)
treee8a7cc7321fc81ccd890ade3a1ec1ce7fcff6caf /python
parent4403757cf9f0ad1cbca6f99d46b45f534edc66c0 (diff)
Expose AnalysisState through the API
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index b0ca13ef..10cd2fea 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -3372,6 +3372,11 @@ class BinaryView:
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"""
return self.get_linear_disassembly(None)