This is the mail archive of the
mailing list for the GDB project.
GDB likes .../src/main.c, but it does not like ..\src\main.c ?
- From: "Sascha Radike" <sascha at pasalacqua dot de>
- To: <gdb at sourceware dot org>
- Date: Wed, 25 Apr 2007 13:32:43 +0200
- Subject: GDB likes .../src/main.c, but it does not like ..\src\main.c ?
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.