dart-sdk/runtime/include
Teagan Strickland c2b6c2e1db [vm/compiler] Add --save-debugging-info flag to gen_snapshot.
The flag can be used when creating AOT snapshots. The resulting file can be
used with package:vm/dwarf/convert.dart to convert DWARF-based stack traces
to stack traces with function, file, and line number information.

Currently the saved file will be an ELF file with DWARF debugging information,
but this is subject to change in the future. To avoid being affected by any
changes in format, read the DWARF information from the file using
Dwarf.fromFile() in package:vm/dwarf/dwarf.dart.

Also adds --dwarf-stack-traces to the VM global flag list, so its value at
compilation will be read out of snapshots by the precompiled runtime.

Fixes https://github.com/dart-lang/sdk/issues/39512, which was due to
a missing compiler::target:: prefix for Instructions::HeaderSize() in
BlobImageWriter::WriteText().

Exposes the information suggested in
https://github.com/dart-lang/sdk/issues/39490 so that package:vm/dwarf
can appropriately convert absolute PC addresses to the correct virtual
address for a given DWARF line number program.

Bug: https://github.com/dart-lang/sdk/issues/35851
Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-linux-debug-x64-try,vm-kernel-precomp-android-release-arm64-try,vm-kernel-precomp-mac-release-simarm_x64-try,vm-kernel-precomp-win-release-x64-try
Change-Id: I80d900fd9e5f1e2399ad3f2fd25c85131a7ea43c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121857
Commit-Queue: Teagan Strickland <sstrickl@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-12-12 14:18:59 +00:00
..
bin Rollforward of the dart_io_api.h include change, with a fix for flutter. 2018-11-19 18:16:11 +00:00
dart_api.h [vm/compiler] Add --save-debugging-info flag to gen_snapshot. 2019-12-12 14:18:59 +00:00
dart_embedder_api.h [ VM / Service ] Add --write-service-info=<filename> flag to allow for writing VM service connection information to a file 2019-09-17 20:34:12 +00:00
dart_native_api.h [vm/ffi] Call natives through stubs if write-protection is enabled without dual-mapping. 2019-08-07 11:37:20 +00:00
dart_tools_api.h [vm] Document clock compatibility between Timeline.now and Dart_TimelineGetMicros. 2019-06-19 21:17:51 +00:00