Resolve dwarf paths to enable source-code mapping of stacktraces (#114767)

* feat: add "--resolve-dwarf-paths" to gen_snapshot

* chore: update tests
This commit is contained in:
Ivan Dlugos
2023-02-10 00:05:44 +01:00
committed by GitHub
parent fecd5c969e
commit f945ad99c3
2 changed files with 4 additions and 2 deletions

View File

@@ -205,11 +205,11 @@ class AOTSnapshotter {
.createSync(recursive: true);
}
// Optimization arguments.
// Debugging information.
genSnapshotArgs.addAll(<String>[
// Faster async/await
if (shouldSplitDebugInfo) ...<String>[
'--dwarf-stack-traces',
'--resolve-dwarf-paths',
'--save-debugging-info=${_fileSystem.path.join(splitDebugInfo!, debugFilename)}',
],
if (dartObfuscation)

View File

@@ -209,6 +209,7 @@ void main() {
'--snapshot_kind=app-aot-assembly',
'--assembly=$assembly',
'--dwarf-stack-traces',
'--resolve-dwarf-paths',
'--save-debugging-info=$debugPath',
'main.dill',
]),
@@ -444,6 +445,7 @@ void main() {
'--no-sim-use-hardfp',
'--no-use-integer-division',
'--dwarf-stack-traces',
'--resolve-dwarf-paths',
'--save-debugging-info=$debugPath',
'main.dill',
]