[test/win] Use correct cdb.exe on ARM64.

See https://dart-ci.appspot.com/log/vm-win-release-arm64/vm-win-release-arm64/3854/vm/cc/IsolateReload_RegressB179030011 for example of currently incorrect behavior where x86 is used instead of arm64.

TEST=ci

Change-Id: I8e725a1bca39dcdd67ea856b7ebbea24e750dfda
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/420501
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
This commit is contained in:
Alexander Aprelev
2025-04-04 13:24:38 -07:00
committed by Commit Queue
parent 6c5c9d384f
commit 1600519f81
+2 -1
View File
@@ -266,11 +266,12 @@ class RunningProcess {
command.executable.contains("SIMARM64") ||
command.executable.contains("SIMARM64C") ||
command.executable.contains("SIMRISCV64");
var isARM64 = !isX64 && command.executable.contains("ARM64");
if (configuration.windowsSdkPath != null) {
executable = [
configuration.windowsSdkPath!,
'Debuggers',
if (isX64) 'x64' else 'x86',
if (isX64) 'x64' else if (isARM64) 'arm64' else 'x86',
'cdb.exe',
].join('\\');
diagnostics.add("Using $executable to print stack traces");