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, 11 Jul 2004, Richard Heintze wrote:

> 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:
>
>   Why does this not work?

DISPLAY is not set.  If you need further help with Cygwin/X, please ask on
the cygwin-xfree list.  Your other message was redirected there already.
This reply concerns insight.

> So I download the insight debugger and tried
> /cygdrive/c/dev/insight/bin/gdb.exe test.exe
  ^^^^^^^^^^^^^^^^^^^^^^^^
Wrong.  You didn't need to download "insight" separately, it should have
been already installed in /usr/bin (since you apparently installed
everything).  The version that you've downloaded is likely not compiled
for Cygwin, and so won't understand Cygwin POSIX paths.  Just run
"/usr/bin/insight test.exe".

HTH,
	Igor

> 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!
>
> Anyone know why?
>     Siegfried
>
>
> --- James Merritt <jamesem_99@xxx.com> wrote:
> > Another GUI debugger is DDD, also part of Cygwin.
> > Can't say how it compares to insight, though.
> >
> > Have a great day!!
> >
> > James E. Merritt
> >
> > --- Arturus Magi <sailorleo@xxx.com> wrote:
> > > Richard Heintze wrote:
> > > > I remember running a GUI based source code debugger for gcc. I was
> > > > very impressed. Can anyone remind me of the command I used to
> > > > start it?
> > >
> > > What you're looking for is insight, and it is, AFAIK, part of the
> > > gdb package.

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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]