delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/12/00:57:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Siegfried Heintze" <siegfried AT heintze DOT com>
To: <cygwin AT cygwin DOT com>
Subject: How to run ddd in XWin?
Date: Sun, 11 Jul 2004 22:56:00 -0600
MIME-Version: 1.0
Message-Id: <200407112258671.SM01156@fasolt>
X-IsSubscribed: yes

OK, I apparently already have that installed. I typed "info XWin" and
learned about the options. Nothing terribly relevant to ddd here -- did I
miss something.

OK, I type XWin& and "ddd test.exe" and same error. Any other ideas?
 Test.exe is compiled with the "-g" option in g77.

I also tried ddd convex.pl and still got the same error. Ddd debugs perl
too, correct?


Thanks,
    Siegfried


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/




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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019