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:
@@ -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)
|
||||
|
||||
@@ -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',
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user