News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Cygwin GDB does not work for me

Started by hutucong, April 11, 2006, 12:41:16 AM

Previous topic - Next topic

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

#1
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.

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

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

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:

QuoteWarning: /cygdrive/c/temp/hello/C: No such file or directory.

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