User forums > Using Code::Blocks

Cygwin GDB does not work for me

(1/1)

hutucong:
Hi

I setup C:B with Cygwin. I tried a simple "hello" project. It comiples and runs OK. However the debuger (GDB) fails. A window "segment fault" pops up and the error message shows like below
=======================================
Selecting target: default
Compiling: done
Adding source dir: C:\temp\hello\
Adding source dir: C:\temp\hello\
Adding file: hello.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.3.50_2004-12-28-cvs (cygwin-special)
Warning: /cygdrive/c/temp/hello/C: No such file or directory.
Program received signal SIGSEGV, Segmentation fault.
In pthread_key_create () (/usr/bin/cygwin1.dll)
Debugger finished with status 0
===============================

I guess something is wrog with my setting?

Michael:
Hello,

May be I am wrong, but I am not sure that you can use Cygwin. I was wrong. From a quick search in the forum, it seems possible to use Cygwin, at least for compiling. May be to solve your gdb issue you have to add a library(ies) to your settings.

Anyway, from what I can read, there is a problem with


--- Quote ---Warning: /cygdrive/c/temp/hello/C: No such file or directory.

--- End quote ---

Are you sure that you set up correctly all the pathes?

Best wishes,
Michael

hutucong:
I checked my path setting. I did not find any problem. Did anyone use Cygwin/GDB sucessfully?

Martin:
Hi, guys, i came up with this problem too, i noticed the error message:


--- Quote ---Warning: /cygdrive/c/temp/hello/C: No such file or directory.
--- End quote ---

there is a "C:" there, it might be caused by C:B trying to use a windows path while cygwin only supports unix like path.

best regards,
M

Navigation

[0] Message Index

Go to full version