X-Recipient: archive-cygwin@delorie.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:subject:to:references:cc:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=dUBnkGJVsVXDSeTV
	zW7jTWXMlVUYh/G4t/n+mX2tQ4E/gAnB8YkkgIE3p8JZwOvinwDT38URJrSUU1DS
	wXEq7HeDuln03zNeSs2+F/sp5zxkS+WSeiPVziA6Kxzio3Nuzh+P46BMh0CCMClL
	YUAT68FlzHG7Al6OF08M0LK4KT8=
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:subject:to:references:cc:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=DH3lFFsHo5TpjJs3un0H9l
	cciKA=; b=xOIzLSibZ47F9oq6qd1mKE5cEDWQJl1pxa9QwLl1dAAk9inUyXRdOy
	tS8DhmHgeE8Vi1jeGjcasSb4fMonGQL0M5LJR/YzDiuOonKproF1Fj8H0Dab2LUL
	c9qTLBpNYDi8JvBB1ekUUyD1Jp/LDAtoEhMls4prBm+Tmfl2EjeY8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=harry, Hx-spam-relays-external:ESMTPA, Harry
X-HELO: out2-smtp.messagingengine.com
Subject: Re: gdb input error gfortrani_fbuf_read () cyggfortran-3.dll
To: cygwin@cygwin.com
References: <0ff238ef03c04fe38f48139793e77e57@vsrv060ex03.ssd.fsi.com> <af5cbdfb-21ab-8450-f089-0d1af5c26ea1@dronecode.org.uk>
Cc: "Rockefeller, Harry" <Harry.Rockefeller@flightsafety.com>
From: Jon Turney <jon.turney@dronecode.org.uk>
Message-ID: <8bb12fde-de72-2524-ee5c-1cf8f9b99ece@dronecode.org.uk>
Date: Tue, 27 Sep 2016 16:14:26 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0
MIME-Version: 1.0
In-Reply-To: <af5cbdfb-21ab-8450-f089-0d1af5c26ea1@dronecode.org.uk>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

On 26/09/2016 14:41, Jon Turney wrote:
> On 22/09/2016 20:55, Rockefeller, Harry wrote:
>> gdb (test version) and program's 'read' seem to have an input clash.
>> Anyway, gdb used to pause and allow keyboard input.
>
> Thanks for reporting this problem, and the test case.
>
>> Thread 1 "foo" hit Breakpoint 1, foo () at foo.f:4
>> 4             write(*,*) "Enter a real number"
>> (gdb) n
>>  Enter a real number
>> 5             read(*,*) e
>> (gdb) n
>>
>> [1]+  Stopped                 gdb foo
>>
>> $ fg
>> gdb foo
>>
>> Thread 1 "foo" received signal SIGTTIN, Stopped (tty input).
>> 0x5bd015dc in gfortrani_fbuf_read () from /usr/bin/cyggfortran-3.dll
>
> In gdb 7.11 there are some upstream changes in the way access to the
> controlling terminal is given the inferior, and I guess this has broken
> something here.

I uploaded a gdb 7.11.1-2 test package with a fix for this.



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

