Fix build-id lookup for libraries loaded directly from apk

Use only the part after "!" as the filename to lookup.

Test: symbolize local crash
Change-Id: I70840ffcc07dc7d449b726a91c08d12529125d78
This commit is contained in:
David Srbecky
2023-09-19 17:09:33 +01:00
parent 8ca4239aed
commit bfda306156

View File

@@ -509,7 +509,7 @@ class TraceConverter:
if build_id:
# If we have the build_id, do a brute-force search of the symbols directory.
basename = os.path.basename(lib)
basename = os.path.basename(lib).split("!")[-1]
lib = self.GetLibraryByBuildId(symbol.SYMBOLS_DIR, basename, build_id)
if not lib:
print("WARNING: Cannot find {} with build id {} in symbols directory."