Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] gdb/testsuite: make MSYS path normalization case-insensitive
@ 2026-08-04 20:05 Oleg Tolmatcev
  2026-08-16 15:59 ` Oleg Tolmatcev
  0 siblings, 1 reply; 2+ messages in thread
From: Oleg Tolmatcev @ 2026-08-04 20:05 UTC (permalink / raw)
  To: gdb-patches; +Cc: Oleg Tolmatcev

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(-)

diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 6fb04869605..58f7c54cea0 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -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"
-- 
2.55.0.windows.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-16 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-04 20:05 [PATCH] gdb/testsuite: make MSYS path normalization case-insensitive Oleg Tolmatcev
2026-08-16 15:59 ` Oleg Tolmatcev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox