...commented out...
The only issue is when I debug I get this error in the debugger log:
Cannot open file: Z:\Itpdx\StoreCommand\sc_import\->->\cygdrive\Z\Itpdx\StoreCommand\sc_import\main.c
and even though the breakpoints and watches work the correct file isn't switched to and the current line is
not highlighted. I can live without these things but it would be nice to have it all working.
What did I miss?
full debug log:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: Z:\Itpdx\StoreCommand\sc_import\
Adding source dir: Z:\Itpdx\StoreCommand\sc_import\
Adding source dir: Z:\Itpdx\StoreCommand\sc_import\
Adding file: bin\Debug\ximpi.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb Fedora (6.8-37.el5)
Cannot open file: Z:\Itpdx\StoreCommand\sc_import\->->\cygdrive\Z\Itpdx\StoreCommand\sc_import\main.c
At ->->/cygdrive/Z/Itpdx/StoreCommand/sc_import/main.c:45
Cannot open file: Z:\Itpdx\StoreCommand\sc_import\->->\cygdrive\Z\Itpdx\StoreCommand\sc_import\main.c
At ->->/cygdrive/Z/Itpdx/StoreCommand/sc_import/main.c:46
Continuing...
Cannot open file: Z:\Itpdx\StoreCommand\sc_import\->->\cygdrive\Z\Itpdx\StoreCommand\sc_import\logger.c
At ->->/cygdrive/Z/Itpdx/StoreCommand/sc_import/logger.c:91
Cannot open file: Z:\cygdrive\Z\Itpdx\StoreCommand\sc_import\logger.c
Cannot open file: Z:\Itpdx\StoreCommand\sc_import\->->\cygdrive\Z\Itpdx\StoreCommand\sc_import\logger.c
At ->->/cygdrive/Z/Itpdx/StoreCommand/sc_import/logger.c:92
Cannot open file: Z:\Itpdx\StoreCommand\sc_import\->->\cygdrive\Z\Itpdx\StoreCommand\sc_import\logger.c
At ->->/cygdrive/Z/Itpdx/StoreCommand/sc_import/logger.c:96
Cannot open file: Z:\Itpdx\StoreCommand\sc_import\->->\cygdrive\Z\Itpdx\StoreCommand\sc_import\logger.c
At ->->/cygdrive/Z/Itpdx/StoreCommand/sc_import/logger.c:97
Cannot open file: Z:\Itpdx\StoreCommand\sc_import\->->\cygdrive\Z\Itpdx\StoreCommand\sc_import\main.c
At ->->/cygdrive/Z/Itpdx/StoreCommand/sc_import/main.c:76
Continuing...
Program exited normally.
Debugger finished with status 0
Thanks
***********************************
I see a similar thing in a win XP, C::B 8.02, wx2.8.7 (windows, unicode), using cygwin g++/gdb. To get to compile I set in the toolchain configuration g++-3.exe as the compiler/linker because it could not use the 1KB g++.exe file that was installed by cygwin. All the rest is the same as the GNU GCC Configuration. Also this configuration works OK in Win Vista.
I am building the hello world C++ console app, builds fine but when debugging gdb can't open the source files. I read another post about in the advanced configurations for gdb to use full path and it is turned on (I also tried with it off same error).
I get the following errors (sorry for the project name... :-) Any help appreciated!
Thx, Tomas
CONSOLE LOGS FOLLOW:
-------------- Build: Debug in terd ---------------
[ 50.0%] g++-3.exe -Wall -fexceptions -g -Wall -g -c C:\cygwin\home\Tomas\terd\main.cpp -o obj\Debug\main.o
[100.0%] g++-3.exe -o bin\Debug\terd.exe obj\Debug\main.o
Output size is 599.43 KB
Process terminated with status 0 (0 minutes, 8 seconds)
0 errors, 0 warnings
---------------Debugger -------------------------
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\cygwin\home\Tomas\terd\
Adding source dir: C:\cygwin\home\Tomas\terd\
Adding file: bin\Debug\terd.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.8.0.20080328-cvs (cygwin-special)
Child process PID: 2916
Cannot open file: C:\cygwin\home\Tomas\terd\->->\cygdrive\c\cygwin\home\Tomas\terd\main.cpp
At ->->/cygdrive/c/cygwin/home/Tomas/terd/main.cpp:7
------------Debugger (debug) log-----------------------------------
> run
gdb: win32_init_thread_list
[New thread 2916.0xaa4]
[New thread 2916.0xde8]
Breakpoint 1, main () at C:\cygwin\home\Tomas\terd\main.cpp:7
->->/cygdrive/c/cygwin/home/Tomas/terd/main.cpp:7:62:beg:0x40116a
>>>>>>cb_gdb:
> set debugevents off
>>>>>>cb_gdb: