[hwasan] Add default "/" prefix.

Add a default "/" prefix to the symbol search path in the
symbolization script. Without this, the binary itself is not considered
a valid source of symbol info.

Differential Revision: https://reviews.llvm.org/D111840
This commit is contained in:
Evgenii Stepanov 2021-10-14 14:49:07 -07:00
parent acb3b187c4
commit 039096ee71
1 changed files with 1 additions and 0 deletions

View File

@ -200,6 +200,7 @@ if not binary_prefixes:
if 'ANDROID_PRODUCT_OUT' in os.environ:
product_out = os.path.join(os.environ['ANDROID_PRODUCT_OUT'], 'symbols')
binary_prefixes.append(product_out)
binary_prefixes.append('/')
for p in binary_prefixes:
if not os.path.isdir(p):