delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/07/10:58:42

From: Ian AT kiwiplan DOT co DOT nz (Ian Collins)
Subject: stdout when in gdb when using CYGWIN32=tty
7 Apr 1998 10:58:42 -0700 :
Message-ID: <C1A9DAABC292D111A4D90000F879A2BA0ED0.cygnus.gnu-win32@NTMAIL>
Mime-Version: 1.0
To: "'Gnu Mailing list'" <gnu-win32 AT cygnus DOT com>

stdout doesn't appear to be flushed when running a program in gdb.
This is only a problem when CYGWIN32=tty is set (but I need this
otherwise ioctl fails).

For example, if I run a hello world (below) in gdb and break at the
printf and step over it, I don't see any output. 
However, if I fprintf to stderr, I do see immediate output.
I also see immediate output when tty is turned off in CYGWIN32

main()
{
printf("hello world\n");
}

Is there an additional setting I can make to CYGWIN32 to change this
behaviour?

Ian Collins. 
KIWIPLAN NZ.


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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