diff options
| author | Peter LaFosse <peter@vector35.com> | 2019-07-05 11:29:28 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2019-07-14 14:42:52 -0400 |
| commit | a096663fc17d08af0bf2581150b618a1a8f09767 (patch) | |
| tree | a865bc30f99da2612ed4aa61d46e0c483fb35b19 /binaryview.cpp | |
| parent | c061061966ee12a7d6ace672b7798257eeb22cfd (diff) | |
Add support for sorting the symbol list by name or address
Refactoring Function List to support Symbols and Data Variables too
Renaming FunctionList and FunctionsView to SymbolList/SymbolsView
Keep track of current selection and scroll position between model resets
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index 7fcf8253..85d09721 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -1328,6 +1328,18 @@ bool BinaryView::HasFunctions() const } +bool BinaryView::HasSymbols() const +{ + return BNHasSymbols(m_object); +} + + +bool BinaryView::HasDataVariables() const +{ + return BNHasDataVariables(m_object); +} + + Ref<Function> BinaryView::GetAnalysisFunction(Platform* platform, uint64_t addr) { BNFunction* func = BNGetAnalysisFunction(m_object, platform->GetObject(), addr); |
