mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
c1afa7f85e
Before, we only stripped `org-dartlang-sdk:///` as a prefix when it was followed by `sdk/...`, which happens for code compiled with the Dart SDK. However, the same prefix can show up in Flutter code (e.g., `org-dartlang-sdk:///third_party/dart/sdk/...`). Thus, except for one case, just strip the prefix at all times when `--resolve-dwarf-paths` is set, leaving a relative path. The one case is `org-dartlang-sdk:///flutter/`, which appears in the resolved version of `dart:ui` (`org-dartlang-sdk:///flutter/lib/ui`), where the `flutter` isn't part of the actual filesystem path. In this case, we strip off the `flutter/` as well. TEST=vm/dart{,_2}/use_resolve_dwarf_paths_flag Bug: https://github.com/dart-lang/sdk/issues/44325 Change-Id: Ia9abca877e41657089a438d4723ff08a2e16fe69 Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-dwarf-linux-product-x64-try,vm-kernel-precomp-linux-release-x64-try,vm-kernel-precomp-nnbd-mac-release-arm64-try,vm-kernel-precomp-nnbd-win-release-x64-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/268762 Reviewed-by: Daco Harkes <dacoharkes@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com> |
||
---|---|---|
.. | ||
bin | ||
docs | ||
include | ||
lib | ||
observatory | ||
observatory_2 | ||
platform | ||
tests | ||
third_party | ||
tools | ||
vm | ||
.clang-tidy | ||
.gitignore | ||
BUILD.gn | ||
codereview.settings | ||
configs.gni | ||
CPPLINT.cfg | ||
OWNERS | ||
PRESUBMIT.py | ||
runtime_args.gni |