delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/03/15:40:26

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:date:subject:message-id:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=xeV
VzEJqSfLNF1PKqItehm0x2amBIfwjVZ01Wb0sByrw4CPu/HlJ333OWAp8/QUzMKR
P5fLEDXBEIE81d9ihykkYKvyWG1xq0d8wzu8RDAphp1ZWdoLUw42GOuokpW3vXqU
7wed/pNpyaCfvc5zTM1Dkr3ohjdLA25ID+ntxQq0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:date:subject:message-id:content-type
:content-transfer-encoding:mime-version; s=default; bh=iXvAzAkGn
v7DM+g4of3+ph6bW+I=; b=mXQd8xgNZnm3XdL7T7xU9g+feZDDcqtOkRspxUgOB
UGNjpDAnd8GiVNkuFtVS2URjy6iQppwZnOOTdbhhBjUhCk8P3ibm5Mr2sBQ6OLLo
q9Zb/5nfqeJcJuL5OBmyLsrBpSxm2xNKi7l2qQ2I1HvTdwwLxYWFxfmsNmUCZbpb
G0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2
X-HELO: exprod5og116.obsmtp.com
From: "Rockefeller, Harry" <Harry DOT Rockefeller AT flightsafety DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Mon, 3 Feb 2014 15:39:58 -0500
Subject: gdb fortran cygwin64 readlen< 0 error
Message-ID: <3185EFAF9C8F7B4E9DBDF56829BF7C782A5D5E2279@srv060ex01.ssd.fsi.com>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s13KeLSn014737

If I let gdb "run" the program under Cygwin 64 it fails.
NOTE: in Cygwin 32 gdb and this fortran work together fine.
When I run my fortran program directly it works.

 Cycle_length is defined as a 'real'.

           write(*,"('(Note: a negative test time will stop run): ',$)")
           read (*,*) cycle_length

When I run line by line using gdb I get this:

(Note: a negative test time will stop run): 39             read (*,*) cycle_length
(gdb)

[1]+  Stopped                 gdb olx.exe

harryr AT HARRYR-PC ~
$ fg
gdb olx.exe

Program received signal SIGTTIN, Stopped (tty input).
_gfortrani_fbuf_read (u=0x22964c, len=0x0)
    at /usr/src/debug/gcc-4.8.2-2/libgfortran/io/fbuf.c:235
235           if (readlen < 0)

Under gdb the program acts like it moves on without keyboard input and thus
The cycle_length is never input, has zero length.
Is the Fortran syntax to antiquated for gdb to handle?
Is gdb (in 64-bit) missing something to force it to pause for keyboard input?


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


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