From a096663fc17d08af0bf2581150b618a1a8f09767 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 5 Jul 2019 11:29:28 -0400 Subject: 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 --- python/binaryview.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'python') diff --git a/python/binaryview.py b/python/binaryview.py index 4f146adc..179d0d21 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -1320,6 +1320,16 @@ class BinaryView(object): """Boolean whether the binary has functions (read-only)""" 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)""" -- cgit v1.3.1