We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebff89f commit 6267492Copy full SHA for 6267492
view/sharedcache/api/python/sharedcache.py
@@ -254,5 +254,15 @@ def symbols(self) -> [CacheSymbol]:
254
result.append(symbol_from_api(value[i]))
255
sccore.BNSharedCacheFreeSymbolList(value, count)
256
return result
257
-
258
+
259
+def _get_dsc(instance: binaryninja.PythonScriptingInstance):
260
+ if instance.interpreter.active_view is None:
261
+ return None
262
+ return SharedCache(instance.interpreter.active_view)
263
264
265
+binaryninja.PythonScriptingProvider.register_magic_variable(
266
+ "dsc",
267
+ _get_dsc
268
+)
0 commit comments