How to run debugger?

Chris Taylor chris@equate.dyndns.org
Sun Jul 11 20:07:00 GMT 2004



On Sun, July 11, 2004 6:36 pm, Richard Heintze said:
> Ah hah! Write a short program called test.c and gcc -g
> test.c -o test.exe and ddd test.exe and then I see
> 
> Error: can't open display:

This one's easy. It's almost certainly looking for a running X server, of which there almost certainly isn't one.
I suggest you install the X.org packages, and then start XWin.exe .. (It's worth reading the documentation to decide how you want to start it, but I found that XWin.exe -multiwindow -emulate3buttons was useful (I use emu3buttons because the laptop I use it on only has 2 :( )

> 
> 
> Why does this not work?
> 
> 
> So I download the insight debugger and tried
> /cygdrive/c/dev/insight/bin/gdb.exe test.exe
> 
> 
> This gives the error
> stat "/cygdrive/c/tmp/test.c" no such file or directory while executing
> 
> Well that is not true, the file is there! I tried
> chmod 777 test.c but that did not help. The debugger works, it just cannot
> load test.c for some reason!

Just ensure that is the correct path to the file? I would be surprised if it was /cygdrive/c/tmp ... More likely is /cygdrive/c/cygwin/tmp/test.c .
Does that work?

Chris

-- 
Your mode of life will be changed to EBCDIC.


-- 
Dammit Jim, I'm a doctor, not a computer engineer!


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list