mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
[testsuite] Make the testsuite work on mingw
Dejagnu produces an objdir like /c/, but GDB expects something like c:/. So fix it up in lib/gdb.exp. gdb/testsuite/ChangeLog: 2019-08-14 Christian Biesinger <cbiesinger@google.com> * lib/gdb.exp: When running on a mingw target, replace /x/ with x:/.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2019-08-15 Christian Biesinger <cbiesinger@google.com>
|
||||
|
||||
* lib/gdb.exp: When running on a mingw target, replace
|
||||
/x/ with x:/.
|
||||
|
||||
2019-08-14 Alan Hayward <alan.hayward@arm.com>
|
||||
|
||||
* gdb.arch/aarch64-prologue.c: New test.
|
||||
|
@ -4724,6 +4724,10 @@ proc standard_output_file {basename} {
|
||||
|
||||
set dir [make_gdb_parallel_path outputs $subdir $gdb_test_file_name]
|
||||
file mkdir $dir
|
||||
# If running on MinGW, replace /c/foo with c:/foo
|
||||
if { [ishost *-*-mingw*] } {
|
||||
set dir [regsub {^/([a-z])/} $dir {\1:/}]
|
||||
}
|
||||
return [file join $dir $basename]
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user