GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Expose AnalysisState through the API · Vector35/binaryninja-api@d4f7a4b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • binaryninjaapi.h
  • binaryninjacore.h
  • binaryview.cpp
  • python
    • binaryview.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎binaryninjaapi.h‎

Copy file name to clipboardExpand all lines: binaryninjaapi.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6109,6 +6109,7 @@ namespace BinaryNinja {
61096109

61106110
AnalysisInfo GetAnalysisInfo();
61116111
BNAnalysisProgress GetAnalysisProgress();
6112+
BNAnalysisState GetAnalysisState();
61126113
Ref<BackgroundTask> GetBackgroundAnalysisTask();
61136114

61146115
/*! Returns the virtual address of the Function that occurs after the virtual address `addr`
Collapse file

‎binaryninjacore.h‎

Copy file name to clipboardExpand all lines: binaryninjacore.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5068,6 +5068,7 @@ extern "C"
50685068
BINARYNINJACOREAPI BNAnalysisInfo* BNGetAnalysisInfo(BNBinaryView* view);
50695069
BINARYNINJACOREAPI void BNFreeAnalysisInfo(BNAnalysisInfo* info);
50705070
BINARYNINJACOREAPI BNAnalysisProgress BNGetAnalysisProgress(BNBinaryView* view);
5071+
BINARYNINJACOREAPI BNAnalysisState BNGetAnalysisState(BNBinaryView* view);
50715072
BINARYNINJACOREAPI BNBackgroundTask* BNGetBackgroundAnalysisTask(BNBinaryView* view);
50725073

50735074
BINARYNINJACOREAPI uint64_t BNGetNextFunctionStartAfterAddress(BNBinaryView* view, uint64_t addr);
Collapse file

‎binaryview.cpp‎

Copy file name to clipboardExpand all lines: binaryview.cpp
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3823,6 +3823,12 @@ BNAnalysisProgress BinaryView::GetAnalysisProgress()
38233823
}
38243824

38253825

3826+
BNAnalysisState BinaryView::GetAnalysisState()
3827+
{
3828+
return BNGetAnalysisState(m_object);
3829+
}
3830+
3831+
38263832
Ref<BackgroundTask> BinaryView::GetBackgroundAnalysisTask()
38273833
{
38283834
BNBackgroundTask* task = BNGetBackgroundAnalysisTask(m_object);
Collapse file

‎python/binaryview.py‎

Copy file name to clipboardExpand all lines: python/binaryview.py
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3371,6 +3371,11 @@ def analysis_progress(self) -> AnalysisProgress:
33713371
result = core.BNGetAnalysisProgress(self.handle)
33723372
return AnalysisProgress(result.state, result.count, result.total)
33733373

3374+
@property
3375+
def analysis_state(self) -> AnalysisState:
3376+
"""State of current analysis (read-only)"""
3377+
return core.BNGetAnalysisState(self.handle)
3378+
33743379
@property
33753380
def linear_disassembly(self) -> Iterator['lineardisassembly.LinearDisassemblyLine']:
33763381
"""Iterator for all lines in the linear disassembly of the view"""

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.