Skip to content

Commit

Permalink
Fix symbol file selection for R2R outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Jun 13, 2023
1 parent e22efe9 commit 5a7ce31
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions azure-pipelines/Get-SymbolFiles.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@ $PDBs |% {
}
} |% {
# Collect the DLLs/EXEs as well.
$dllPath = "$($_.Directory)/$($_.BaseName).dll"
$exePath = "$($_.Directory)/$($_.BaseName).exe"
$rootName = "$($_.Directory)/$($_.BaseName)"
if ($rootName.EndsWith('.ni')) {
$rootName = $rootName.Substring(0, $rootName.Length - 3)
}

$dllPath = "$rootName.dll"
$exePath = "$rootName.exe"
if (Test-Path $dllPath) {
$BinaryImagePath = $dllPath
} elseif (Test-Path $exePath) {
Expand Down

0 comments on commit 5a7ce31

Please sign in to comment.