Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Mon, 12 Jul 2004 09:54:31 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Richard Heintze cc: cygwin AT cygwin DOT com Subject: Re: How to run debugger? In-Reply-To: <20040711173649.58856.qmail@web50305.mail.yahoo.com> Message-ID: References: <20040711173649 DOT 58856 DOT qmail AT web50305 DOT mail DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 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 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 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 AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT 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/