Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(740)

Unified Diff: mojo/devtools/common/android_stack_parser/stack_utils.py

Issue 1895863004: Android stack tool: Treat /data/data as a synonym for /data/user/0. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/devtools/common/android_stack_parser/stack_utils.py
diff --git a/mojo/devtools/common/android_stack_parser/stack_utils.py b/mojo/devtools/common/android_stack_parser/stack_utils.py
index f6efb862a4163778bccb497b5205e7e4499c1877..9a6bb82147285c6055f8657d49dbcfb7a027c167 100644
--- a/mojo/devtools/common/android_stack_parser/stack_utils.py
+++ b/mojo/devtools/common/android_stack_parser/stack_utils.py
@@ -78,8 +78,11 @@ def GetSymbolMapping(lines):
result = regex.search(line)
if result:
url = GetBasenameFromMojoApp(result.group(1))
- mappings[os.path.normpath(result.group(2))] = GetSymboledNameForMojoApp(
- url)
+ path = os.path.normpath(result.group(2))
+ name = GetSymboledNameForMojoApp(url)
+ mappings[path] = name
+ if path.startswith('/data/user/0/'):
+ mappings[path.replace('/data/user/0/', '/data/data/', 1)] = name
return mappings
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698