Last active
June 10, 2022 02:27
-
-
Save buffyanamin/f33ad45f3efb5f66ac00674ae44e7351 to your computer and use it in GitHub Desktop.
asan_symbolize with dsym producer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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