Merge "Add support for xxx.so!xxx.so lines." am: 197cd3d795
Change-Id: I160f03cf654ddeb1db6490e5f9ec859644591308
This commit is contained in:
@@ -374,9 +374,17 @@ class TraceConverter:
|
|||||||
if area.endswith(".apk"):
|
if area.endswith(".apk"):
|
||||||
apk = area
|
apk = area
|
||||||
else:
|
else:
|
||||||
index = area.rfind(".apk!")
|
index = area.rfind(".so!")
|
||||||
if index != -1:
|
if index != -1:
|
||||||
apk = area[0:index + 4]
|
# Sometimes we'll see something like:
|
||||||
|
# #01 pc abcd libart.so!libart.so (offset 0x134000)
|
||||||
|
# Remove everything after the ! and zero the offset value.
|
||||||
|
area = area[0:index + 3]
|
||||||
|
so_offset = 0
|
||||||
|
else:
|
||||||
|
index = area.rfind(".apk!")
|
||||||
|
if index != -1:
|
||||||
|
apk = area[0:index + 4]
|
||||||
if apk:
|
if apk:
|
||||||
lib_name, lib = self.GetLibFromApk(apk, so_offset)
|
lib_name, lib = self.GetLibFromApk(apk, so_offset)
|
||||||
if not lib:
|
if not lib:
|
||||||
|
|||||||
Reference in New Issue
Block a user