summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2019-07-05 11:29:28 -0400
committerPeter LaFosse <peter@vector35.com>2019-07-14 14:42:52 -0400
commita096663fc17d08af0bf2581150b618a1a8f09767 (patch)
treea865bc30f99da2612ed4aa61d46e0c483fb35b19 /python/binaryview.py
parentc061061966ee12a7d6ace672b7798257eeb22cfd (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 'python/binaryview.py')
-rw-r--r--python/binaryview.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 4f146adc..179d0d21 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -1321,6 +1321,16 @@ class BinaryView(object):
return core.BNHasFunctions(self.handle)
@property
+ def has_symbols(self):
+ """Boolean whether the binary has symbols (read-only)"""
+ return core.BNHasSymbols(self.handle)
+
+ @property
+ def has_data_variables(self):
+ """Boolean whether the binary has functions (read-only)"""
+ return core.BNHasDataVariables(self.handle)
+
+ @property
def entry_function(self):
"""Entry function (read-only)"""
func = core.BNGetAnalysisEntryPoint(self.handle)