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

Unified Diff: tools/valgrind/asan/asan_symbolize.py

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « tools/clang/blink_gc_plugin/tests/traceimpl.txt ('k') | tools/valgrind/asan/third_party/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/valgrind/asan/asan_symbolize.py
diff --git a/tools/valgrind/asan/asan_symbolize.py b/tools/valgrind/asan/asan_symbolize.py
index dcac186ccfc77354e201a32e3022f0b82dd0631a..9e7d50419348548665bc2f34b8671581b2669b4f 100755
--- a/tools/valgrind/asan/asan_symbolize.py
+++ b/tools/valgrind/asan/asan_symbolize.py
@@ -68,8 +68,6 @@ def chrome_dsym_hints(binary):
app_positions.append(index)
elif part.endswith('.framework'):
framework_positions.append(index)
- assert len(framework_positions) <= 1, \
- "The path contains more than one framework: %s" % binary
bundle_positions = app_positions + framework_positions
bundle_positions.sort()
assert len(bundle_positions) <= 2, \
@@ -77,9 +75,9 @@ def chrome_dsym_hints(binary):
if len(bundle_positions) == 0:
# Case 1: this is a standalone executable or dylib.
return []
- assert (len(bundle_positions) == 1 or
- len(app_positions) == 2 or
- app_positions[0] < framework_positions[0]), \
+ assert (not (len(app_positions) == 1 and
+ len(framework_positions) == 1 and
+ app_positions[0] > framework_positions[0])), \
"The path contains an app bundle inside a framework: %s" % binary
# Cases 2 and 3. The outermost bundle (which is the only bundle in the case 2)
# is located in the product dir.
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/traceimpl.txt ('k') | tools/valgrind/asan/third_party/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698