Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: 秦巍 <qinwei@sunnorth.com.cn>
To: <gdb-patches@sourceware.org>
Cc: bjgnu@sunnorth.com.cn
Subject: [Patch]: Path problems when setting breakpoints using mingw-build-gdb
Date: Sat, 03 Feb 2007 02:33:00 -0000	[thread overview]
Message-ID: <OFBA6E1623.0870EACC-ON48257277.000DE389-48257277.000DFF3E@sunnorth.com.cn> (raw)

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


             reply	other threads:[~2007-02-03  2:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-03  2:33 秦巍 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OFBA6E1623.0870EACC-ON48257277.000DE389-48257277.000DFF3E@sunnorth.com.cn \
    --to=qinwei@sunnorth.com.cn \
    --cc=bjgnu@sunnorth.com.cn \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox