From ccc46ee23e8160231b1de739380bd7d808ec433d Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Tue, 6 Apr 2021 11:13:51 -0400 Subject: Add support for duplicate symbol handling. --- python/types.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'python/types.py') diff --git a/python/types.py b/python/types.py index 76f8c7f0..39378963 100644 --- a/python/types.py +++ b/python/types.py @@ -151,7 +151,7 @@ class TypeReferenceSource(object): self._name = name self._offset = offset self._ref_type = ref_type - + def __str__(self): if self.ref_type == TypeReferenceType.DirectTypeReferenceType: s = 'direct' @@ -354,20 +354,6 @@ class Symbol(object): def auto(self): return core.BNIsSymbolAutoDefined(self.handle) - @property - def aliases(self): - """ - List of aliases tied to this symbol. - Aliases are the names of any other symbols that also happen to be at the same address. - """ - result = [] - count = ctypes.c_ulonglong(0) - aliases = core.BNGetSymbolAliases(self.handle, count) - for i in range(count.value): - result.append(aliases[i]) - core.BNFreeStringList(aliases, count) - return result - class FunctionParameter(object): def __init__(self, param_type, name = "", location = None): -- cgit v1.3.1