GDB likes .../src/main.c, but it does not like ..\src\main.c ?
Sascha Radike
sascha@pasalacqua.de
Wed Apr 25 11:32:00 GMT 2007
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
More information about the Gdb
mailing list