From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13640 invoked by alias); 5 Feb 2007 12:06:32 -0000 Received: (qmail 13629 invoked by uid 22791); 5 Feb 2007 12:06:31 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 05 Feb 2007 12:06:26 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1HE2bx-0006ff-GQ; Mon, 05 Feb 2007 07:06:17 -0500 Date: Mon, 05 Feb 2007 12:06:00 -0000 From: Daniel Jacobowitz To: ???? Cc: Eli Zaretskii , bjgnu@sunnorth.com.cn, gdb-patches@sourceware.org Subject: Re: [Patch]: Path problems when setting breakpoints using mingw-build-gdb Message-ID: <20070205120616.GA25602@nevyn.them.org> Mail-Followup-To: ???? , Eli Zaretskii , bjgnu@sunnorth.com.cn, gdb-patches@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00041.txt.bz2 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