From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8801 invoked by alias); 3 Feb 2007 02:33:20 -0000 Received: (qmail 8791 invoked by uid 22791); 3 Feb 2007 02:33:19 -0000 X-Spam-Check-By: sourceware.org Received: from mail.sunnorth.com.cn (HELO mswbj01.sunnorth.com.cn) (124.42.0.200) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 03 Feb 2007 02:33:15 +0000 Received: from maillog.sunnorth.com.cn (unverified [172.20.10.250]) by mswbj01.sunnorth.com.cn (Clearswift SMTPRS 5.2.5) with ESMTP id for ; Sat, 3 Feb 2007 10:33:11 +0800 Received: from ntns1cn.sunnorth.com.cn (ntns1cn.sunnorth.com.cn [172.20.10.252]) by maillog.sunnorth.com.cn (8.12.10/8.12.10) with ESMTP id l134ED3o021450 for ; Sat, 3 Feb 2007 12:14:13 +0800 MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5 September 26, 2003 Subject: [Patch]: Path problems when setting breakpoints using mingw-build-gdb Cc: bjgnu@sunnorth.com.cn To: Message-ID: From: =?Big5?B?r7PE3g==?= Date: Sat, 03 Feb 2007 02:33:00 -0000 Content-Type: text/plain; charset="US-ASCII" 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/msg00026.txt.bz2 Dears, When using mingw-build-gdb on windows. 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. Maybe the defined SLASH_STRING is not correct on windows. diff -ruN current_cvs/gdb-6.6/gdb/defs.h gdb-6.6/gdb/defs.h --- current_cvs/gdb-6.6/gdb/defs.h 2007-02-03 09:43:50.000000000 +0800 +++ gdb-6.6/gdb/defs.h 2007-02-03 09:48:10.000000000 +0800 @@ -1186,8 +1186,12 @@ #endif #ifndef SLASH_STRING +#if defined (__MSDOS__) || defined (_WIN32) +#define SLASH_STRING "\\" +#else #define SLASH_STRING "/" #endif +#endif /* Provide default definitions of PIDGET, TIDGET, and MERGEPID. The name ``TIDGET'' is a historical accident. Many uses of TIDGET Best regards, Qinwei Mail qinwei@sunnorth.com.cn Phone +86-010-62981668-2708 Fax +86-010-62985972