Re: [Patch]: Path problems when setting breakpoints using mingw-build-gdb

Daniel Jacobowitz
2007-02-06T11:58:13Z

On Tue, Feb 06, 2007 at 06:24:34AM +0200, Eli Zaretskii wrote:
> > Date: Mon, 5 Feb 2007 07:06:17 -0500
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: Eli Zaretskii <eliz@gnu.org>, bjgnu@sunnorth.com.cn,
> > gdb-patches@sourceware.org
> >
> > What I believe we need to do is use a different function to
> > compare filenames, one which allows \ and / to be treated as equal (on
> > all platforms). I don't know if it should also do case insensitive
> > comparison on all platforms, but it should certainly do so on Windows.
>
> We already have FILENAME_CMP; perhaps all we need is to expand it on
> Windows into a specially written (perhaps inline) function instead of
> strcasecmp.
>
> WDYT?

On all platforms, please, not just on Windows. I regularly use Linux
debuggers with files compiled on Windows, that contain backslashes - I
would love to make that work better.

--
Daniel Jacobowitz
CodeSourcery