summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2025-02-21 12:03:26 -0500
committerBrian Potchik <brian@vector35.com>2025-02-21 12:03:26 -0500
commit85faf55c31868f8184a3af34b049a9ac03281490 (patch)
tree6acd70b60a4cb53d4fe2e64056605be4900da254 /python
parent477e3221a82ce5f96b3083e7415492d5da6fc9b4 (diff)
Deduplicate function objects returned from 'get_functions_by_name' API.
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 96bac051..dcdfe2fe 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -5102,7 +5102,7 @@ class BinaryView:
]
fns = []
- addresses = [sym.address for sym in self.get_symbols_by_name(name, ordered_filter=ordered_filter)]
+ addresses = list(dict.fromkeys(sym.address for sym in self.get_symbols_by_name(name, ordered_filter=ordered_filter)))
if len(addresses) == 0 and name.startswith("sub_"):
try:
addresses = [int(name[4:], 16)]