delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/05/13:39:40

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
Message-ID: <40C20529.8030001@earthlink.net>
Date: Sat, 05 Jun 2004 12:38:49 -0500
From: Don McCarley <don DOT mccarley AT earthlink DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
MIME-Version: 1.0
To: Cygwin List <cygwin AT cygwin DOT com>
Subject: Re: Problem on Cygwin with gdb: segy input can't be tty
References: <40C1FC07 DOT 6060908 AT earthlink DOT net> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20040605131352 DOT 0323c8b8 AT pop DOT theworld DOT com>
In-Reply-To: <6.1.0.6.0.20040605131352.0323c8b8@pop.theworld.com>
X-ELNK-Trace: 8f40263a492d305e1153976827bb424c239a348a220c2609d2c3cee872d1fa88317757709ffbe336350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c

Larry,

Yes, I can type cat and enter text and it is returned to me.  How can I 
try cat with suresamp?  You lost me there.  Thanks for looking at this.

Don

Larry Hall wrote:

>At 12:59 PM 6/5/2004, you wrote:
>
>  
>
>>In trying to debug code with gdb, any program taking stdin on the command line complains that tty (keyboard) is already taken by gdb, so it can't use tty.  Is there a way that you can get the input data into the program other than stdin; or force it in with stdin?
>>
>>Example of problem:
>>---
>>$ gdb suresamp
>>GNU gdb 2003-09-20-cvs (cygwin-special)
>>Copyright ...
>>.
>>.
>>(gdb) r < /home/work/tape01-1.su
>>Starting program: /usr/local/cwp/bin/suresamp.exe < /home/work/tape01-1.su
>>
>>/usr/local/cwp/bin/suresamp: fgettr.c: segy input can't be tty
>>
>>Program exited with code 01.
>>(gdb)
>>---
>>
>>suresamp (and other programs that use stdin) works fine when not in debug (gdb) mode (because gdb isn't using tty).
>>
>>This may be a cygwin only issue, as it works on a linux sun box.
>>
>>    
>>
>
>
>I tried this with 'cat', not specifying a file, and found I could type in
>and see my input echoed back fine (just like outside 'gdb').  Does that 
>reproduce for you?  Does trying that with 'suresamp.exe' give you different
>results?
>
>
>--
>Larry Hall                              http://www.rfk.com
>RFK Partners, Inc.                      (508) 893-9779 - RFK Office
>838 Washington Street                   (508) 893-9889 - FAX
>Holliston, MA 01746                     
>
>
>  
>


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