diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f98edafbc66..19114c29366 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-03-11 Simon Marchi + + * lib/gdb.exp (standard_output_file): Use `pwd -W` to convert + from Unix to Windows path. + 2020-03-11 Tom de Vries * gdb.ada/minsyms.exp: Set language to ada. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 9614e8dc87c..9e903ba3477 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -4899,7 +4899,7 @@ proc standard_output_file {basename} { file mkdir $dir # If running on MinGW, replace /c/foo with c:/foo if { [ishost *-*-mingw*] } { - set dir [regsub {^/([a-z])/} $dir {\1:/}] + set dir [exec sh -c "cd ${dir} && pwd -W"] } return [file join $dir $basename] }