diff options
| author | Brian Potchik <brian@vector35.com> | 2021-04-06 11:13:51 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2021-04-06 11:13:51 -0400 |
| commit | ccc46ee23e8160231b1de739380bd7d808ec433d (patch) | |
| tree | 3208f74e38691890aa6d5a77b3448df86021c8cf /python/types.py | |
| parent | 1f70e7091d198662ddebcd2398f0e0c1b2ecff24 (diff) | |
Add support for duplicate symbol handling.
Diffstat (limited to 'python/types.py')
| -rw-r--r-- | python/types.py | 16 |
1 files changed, 1 insertions, 15 deletions
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): |
