This is the mail archive of the cygwin mailing list for the Cygwin 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]

Re: How to run debugger?



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/


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