From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21432 invoked by alias); 3 Feb 2007 11:26:27 -0000 Received: (qmail 21422 invoked by uid 22791); 3 Feb 2007 11:26:26 -0000 X-Spam-Check-By: sourceware.org Received: from heller.inter.net.il (HELO heller.inter.net.il) (213.8.233.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 03 Feb 2007 11:26:16 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-204-178.inter.net.il [80.230.204.178]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id BUE28444 (AUTH halo1); Sat, 3 Feb 2007 13:25:57 +0200 (IST) Date: Sat, 03 Feb 2007 11:26:00 -0000 Message-Id: From: Eli Zaretskii To: =?Big5?B?r7PE3g==?= CC: gdb-patches@sourceware.org, bjgnu@sunnorth.com.cn In-reply-to: (message from =?Big5?B?r7PE3g==?= on Sat, 3 Feb 2007 10:33:48 +0800) Subject: Re: [Patch]: Path problems when setting breakpoints using mingw-build-gdb Reply-to: Eli Zaretskii References: 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/msg00031.txt.bz2 > Cc: bjgnu@sunnorth.com.cn > From: =?Big5?B?r7PE3g==?= > Date: Sat, 3 Feb 2007 10:33:48 +0800 > > When using mingw-build-gdb on windows. What is the GDB version you used? where did you get the binary? > sending command "b main.c:3", > gdb shows: > No line 3 in file "F:\gcd\2310gcd\main.c". > but sending command "b main", > gdb shows: > Breakpoint 1 at 0xa00011dc: file F:\gcd\2310gcd/main.c, line 3. Could you please show a complete self-contained example, including the source and the compilation command line? Also, please tell what version of GCC you used. I'd like to try to reproduce this on my machine. > Maybe the defined SLASH_STRING is not correct on windows. Did you try applying that patch, and if so, did the problem go away? Personally, I don't think it's related at all, because SLASH_STRING should not be used where an absolute file name is taken apart to look for the directory and the basename. Instead, GDB should use other macros, such as IS_DIR_SEPARATOR (from include/filenames.h), which do cater to Windows filenames. SLASH_STRING is only used to _construct_ file names, and that is okay, since the Windows file I/O APIs recognize both \ and / as separators.