This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [Patch]: Path problems when setting breakpoints using mingw-build-gdb
On Mon, Feb 05, 2007 at 04:34:50PM +0800, ???? wrote:
> Secondly, "start_subfile" is called according to .debug_line's
> "Directory Table" and "File Name Table":
>
> gdb will use "SLASH_STRING" to combine full filenames, and create
> another subfile, we call it subfile2
> (gdb) p *subfile2
> $89 = {
> next = 0x8961f40,
> name = 0x89623a0 "F:\\gcd\\2310gcd/main.c",
> dirname = 0x89623c0 "F:\\\\gcd\\\\2310gcd",
> line_vector = 0x0,
> line_vector_length = 0,
> language = language_c,
> debugformat = 0x0
> }
>
> subfile1->name and subfile2->name are not equal.
Right. 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.
--
Daniel Jacobowitz
CodeSourcery