dart-sdk/runtime
Tess Strickland c1afa7f85e [vm/compiler] Strip org-dartlang-sdk URI prefix to resolve DWARF paths.
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>
2022-11-10 09:33:22 +00:00
..
bin Add logging to trace invalid keys. 2022-11-09 21:59:28 +00:00
docs
include
lib [VM/Developer] Expose through the developer API a gc count for the isolate group that could potentially trigger execution of associated finalizers of objects that were collected. 2022-11-09 19:15:04 +00:00
observatory [io/file] - add FileSystemNotFoundException 2022-11-08 19:26:19 +00:00
observatory_2 [io/file] - add FileSystemNotFoundException 2022-11-08 19:26:19 +00:00
platform
tests [VM/Developer] Expose through the developer API a gc count for the isolate group that could potentially trigger execution of associated finalizers of objects that were collected. 2022-11-09 19:15:04 +00:00
third_party
tools [graphexplorer] Rename bounds variables for successor and predecessor iteration. 2022-10-28 20:07:24 +00:00
vm [vm/compiler] Strip org-dartlang-sdk URI prefix to resolve DWARF paths. 2022-11-10 09:33:22 +00:00
.clang-tidy
.gitignore
BUILD.gn [vm/ffi] FfiNative process lookup 2022-10-25 10:57:07 +00:00
codereview.settings
configs.gni [vm/ffi] FfiNative process lookup 2022-10-25 10:57:07 +00:00
CPPLINT.cfg
OWNERS
PRESUBMIT.py
runtime_args.gni