This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GDB likes .../src/main.c, but it does not like ..\src\main.c ?


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]