[asan_symbolize] Provide better error message when extracting the UUID of a binary fails

rdar://problem/49476995

llvm-svn: 367378
This commit is contained in:
Dan Liew 2019-07-31 00:59:09 +00:00
parent be019c7a1f
commit 23fd828d4e
1 changed files with 3 additions and 1 deletions

View File

@ -756,7 +756,9 @@ def get_uuid_from_binary(path_to_binary, arch=None):
uuid = split_uuid_line[1]
break
if uuid is None:
raise GetUUIDFromBinaryException('Failed to retrieve UUID')
logging.error('Failed to retrieve UUID from binary {}'.format(path_to_binary))
logging.error('otool output was:\n{}'.format(output_str))
raise GetUUIDFromBinaryException('Failed to retrieve UUID from binary "{}"'.format(path_to_binary))
else:
# Update cache
_get_uuid_from_binary_cache[cache_key] = uuid