dfce3aa0ff
For direct-to-ELF snapshots, the story remains the same as before, as we use the information from the Image header if available. If it isn't, then we fall back to dladdr to get the dynamic shared object containing the app snapshot and then walk the ELF or Mach-O headers to find the build ID or UUID information. TEST=vm/dart/use_dwarf_stack_traces_flag Issue: https://github.com/dart-lang/sdk/issues/51941 Change-Id: I3705ed244d1b4a1255e75fffd238a29fc2a60800 Cq-Include-Trybots: luci.dart.try:vm-aot-dwarf-linux-product-x64-try,vm-aot-linux-debug-simarm_x64-try,vm-aot-linux-debug-x64-try,vm-aot-linux-release-x64-try,vm-aot-mac-product-arm64-try,vm-aot-mac-release-arm64-try,vm-aot-mac-release-x64-try,vm-aot-linux-product-x64-try,vm-aot-win-release-x64-try,vm-aot-win-product-x64-try,vm-aot-win-debug-x64c-try,vm-aot-android-release-arm_x64-try,vm-aot-android-release-arm64c-try,vm-fuchsia-release-x64-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/306640 Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com>