Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [Patch]: Path problems when setting breakpoints using mingw-build-gdb
@ 2007-02-03  2:33 秦巍
  2007-02-03 11:26 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: 秦巍 @ 2007-02-03  2:33 UTC (permalink / raw)
  To: gdb-patches; +Cc: bjgnu

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-02-07 18:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-03  2:33 [Patch]: Path problems when setting breakpoints using mingw-build-gdb 秦巍
2007-02-03 11:26 ` Eli Zaretskii
2007-02-05  8:37   ` 秦巍
2007-02-05 12:06     ` Daniel Jacobowitz
2007-02-06  4:24       ` Eli Zaretskii
2007-02-06 11:58         ` Daniel Jacobowitz
2007-02-07 18:12           ` Eli Zaretskii
2007-02-07 18:37             ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox