summaryrefslogtreecommitdiff
path: root/view/sharedcache/api
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/api')
-rw-r--r--view/sharedcache/api/python/sharedcache.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/view/sharedcache/api/python/sharedcache.py b/view/sharedcache/api/python/sharedcache.py
index 83be388b..e250b95b 100644
--- a/view/sharedcache/api/python/sharedcache.py
+++ b/view/sharedcache/api/python/sharedcache.py
@@ -206,6 +206,14 @@ class SharedCacheController:
BNFreeStringList(value, count)
return result
+ def get_symbol_at(self, address: int) -> Optional[CacheSymbol]:
+ api_symbol = sccore.BNSharedCacheSymbol()
+ if not sccore.BNSharedCacheControllerGetSymbolAt(self.handle, address, api_symbol):
+ return None
+ symbol = symbol_from_api(api_symbol)
+ sccore.BNSharedCacheFreeSymbol(api_symbol)
+ return symbol
+
@property
def regions(self) -> [CacheRegion]:
count = ctypes.c_ulonglong()