public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Rockefeller, Harry" <Harry.Rockefeller@flightsafety.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: gdb input error gfortrani_fbuf_read () cyggfortran-3.dll
Date: Thu, 22 Sep 2016 20:35:00 -0000	[thread overview]
Message-ID: <0ff238ef03c04fe38f48139793e77e57@vsrv060ex03.ssd.fsi.com> (raw)

gdb (test version) and program's 'read' seem to have an input clash.
Anyway, gdb used to pause and allow keyboard input.

With test fortran program:
      program foo
      implicit none
      real*4 e /0.0/
      write(*,*) "Enter a real number"
      read(*,*) e
      write (*,*) "e =", e
      stop
      end

$ /usr/bin/gfortran    -g foo.f -o foo

$ gdb foo
GNU gdb (GDB) (Cygwin 7.11.1-1) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from foo...done.
(gdb) b 1
Breakpoint 1 at 0x4011d9: file foo.f, line 1.
(gdb) r
Starting program: /cygdrive/c/Users/harryr/d62/EMBL500/svn/EMBL500/foo
[New Thread 4296.0xb90]
[New Thread 4296.0x1d78]
[New Thread 4296.0x181c]
[New Thread 4296.0x1738]

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


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

             reply	other threads:[~2016-09-22 19:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-22 20:35 Rockefeller, Harry [this message]
2016-09-26 15:08 ` Jon Turney
2016-09-27 15:14   ` Jon Turney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0ff238ef03c04fe38f48139793e77e57@vsrv060ex03.ssd.fsi.com \
    --to=harry.rockefeller@flightsafety.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).