Skip to content

Instantly share code, notes, and snippets.

@buffyanamin
Last active June 10, 2022 02:27
Show Gist options
  • Save buffyanamin/f33ad45f3efb5f66ac00674ae44e7351 to your computer and use it in GitHub Desktop.
Save buffyanamin/f33ad45f3efb5f66ac00674ae44e7351 to your computer and use it in GitHub Desktop.
asan_symbolize with dsym producer
# https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/asan/scripts/asan_symbolize.py
def dsym_producer(binary_path):
base='/path/to/dSYM/dir/'
filename = os.path.basename(binary_path)
if (binary_path.endswith('.dylib')):
sym = base + filename + '.dSYM'
else:
sym = base + filename + ".app.dSYM"
print(binary_path + ' -> ' + sym)
return [sym]
loop = SymbolizationLoop(plugin_proxy, dsym_producer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment