Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Sascha Radike" <sascha@pasalacqua.de>
To: <gdb@sourceware.org>
Subject: GDB likes .../src/main.c, but it does not like ..\src\main.c ?
Date: Wed, 25 Apr 2007 11:32:00 -0000	[thread overview]
Message-ID: <000001c7872d$713eaf00$02b2a8c0@insanenotebook> (raw)

Hi,

I'm using GDB 6.5 and 6.6 (target = ARM, host = MinGW). Same for GCC.


Let's say I compile a file like this:
gcc -c -O0 -g -Ibla\blab\bla -osrc\main.o ..\src\main.c

When I debug the excutable using GDB and I put a "break main.c:23" I'll get
an error: No line 23 in file "..\src\main.c".


But when I compile the file with slashes instead of back-slashes

gcc -c -O0 -g -Ibla/blab/bla -osrc/main.o ../src/main.c

"break main.c:23" will work.


Why is that? The GDB which can be downloaded from MinGW does not seem to
have this problem.

Thanks

Sascha



             reply	other threads:[~2007-04-25 11:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-25 11:32 Sascha Radike [this message]
2007-04-25 11:40 ` Daniel Jacobowitz
2007-04-25 13:14   ` Sascha Radike

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='000001c7872d$713eaf00$02b2a8c0@insanenotebook' \
    --to=sascha@pasalacqua.de \
    --cc=gdb@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