From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23593 invoked by alias); 17 Jun 2006 19:45:37 -0000 Received: (qmail 23580 invoked by uid 22791); 17 Jun 2006 19:45:36 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 17 Jun 2006 19:45:34 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-228-194.inter.net.il [80.230.228.194]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id EXG02611 (AUTH halo1); Sat, 17 Jun 2006 22:45:29 +0300 (IDT) Date: Sat, 17 Jun 2006 19:45:00 -0000 Message-Id: From: Eli Zaretskii To: "Michael Fischer" CC: gdb-patches@sourceware.org In-reply-to: Subject: Re: [PATCH] source.s: Fix problem handling windows like path with MinGW Reply-to: Eli Zaretskii References: X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00244.txt.bz2 > From: "Michael Fischer" > Date: Sat, 17 Jun 2006 18:23:23 +0200 > > the patch below will fix the problem if an application sends path > information like "d:\foo1\foo2" instead of "/d/foo1/foo2" Thank you for your contribution. However, I'm not sure I understand the details and/or the motivation. The patch is MinGW-specific, so I'd expect the source path to use `;', not `:', to separate directories. That is what I see in my MinGW-compiled GDB (built for native Windows debugging). In other words, DIRNAME_SEPARATOR is supposed to be `;' in this build. Can you explain how it became `:'? > Here are some examples how the path could look like: > > 1. "D:\Projekte\Eclipse\Test:$cwd" > 2. "D:\Projekte\Eclipse\Test:D:\Projekte\Eclipse\Test\src:D:\Projekte\Eclipse\Test\inc:$cwd" If you want GDB to distinguish between the two different uses of `:', then I think we shouldn't even try. While it's probable that in "d:\foo:c:\bar" the 1st and the 3rd colon are not separators but parts of the drive letter, nothing prevents a user from legitimately using it in a non-probable way, i.e. the user could really mean to search the directories `d', `\foo', `c', and `\bar'. GDB has no business second-guessing the user's intent, IMHO. The solution to this, IMO, is to make sure your GDB uses `;' to separate directories in paths.