This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: win32/1157: printf() output does not appear in while single stepping the program


The following reply was made to PR win32/1157; it has been noted by GNATS.

From: Daniel Jacobowitz <drow at mvista dot com>
To: cchong97 at hotmail dot com
Cc: gdb-gnats at sources dot redhat dot com
Subject: Re: win32/1157: printf() output  does not appear in  while single stepping the program
Date: Fri, 28 Mar 2003 10:49:16 -0500

 On Fri, Mar 28, 2003 at 04:29:48AM -0000, cchong97 at hotmail dot com wrote:
 > 
 > >Number:         1157
 > >Category:       win32
 > >Synopsis:       printf() output  does not appear in  while single stepping the program
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    unassigned
 > >State:          open
 > >Class:          support
 > >Submitter-Id:   net
 > >Arrival-Date:   Fri Mar 28 04:38:00 UTC 2003
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     chi chong
 > >Release:        20030303-1
 > >Organization:
 > >Environment:
 > cygwin 1.3.22-1
 > >Description:
 > Single step the following program, but output from printf() does not come out until the program terminates. I'm expecting output as the the printf() line is executed.
 > 
 > int main(char argc, char *argv[])
 > {
 >   int i;
 >   for (i=0; i<5; i++) {
 >     printf("i=%d\n", i);
 >   }
 >   return 1;
 > }
 > >How-To-Repeat:
 > just single stepping the executable in gdb.
 
 That's normal.  If you want it to come out right away, you probably
 have to use fflush (stdout).
 
 -- 
 Daniel Jacobowitz
 MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]