gdb/testsuite: make MSYS path normalization case-insensitive
Checks
| Context |
Check |
Description |
| linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_gdb_check--master-arm |
success
|
Test passed
|
| linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Test passed
|
Commit Message
When normalizing Unix-style paths for native MinGW hosts, compare
MSYS mount prefixes case-insensitively.
This avoids mis-normalizing paths like /C/... by failing to
match the /c mount point and then falling back to the root
mount instead.
---
gdb/testsuite/lib/gdb.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -2393,7 +2393,7 @@ proc host_file_normalize_mingw {filename unix_to_win} {
foreach {unix_filename win_filename} $unix_to_win {
set mount_len [string length $unix_filename]
- if {[string equal -length $mount_len $unix_filename $filename]} {
+ if {[string equal -nocase -length $mount_len $unix_filename $filename]} {
if {$unix_filename eq "/"} {
if {$filename eq "/"} {
return "$win_filename"