From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6961 invoked by alias); 5 Nov 2011 20:03:10 -0000 Received: (qmail 6952 invoked by uid 22791); 5 Nov 2011 20:03:08 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.jpl.nasa.gov (HELO mail.jpl.nasa.gov) (128.149.139.105) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 05 Nov 2011 20:02:55 +0000 Received: from mail.jpl.nasa.gov (altvirehtstap01.jpl.nasa.gov [128.149.137.72]) by smtp.jpl.nasa.gov (Switch-3.4.3/Switch-3.4.3) with ESMTP id pA5K2r0C008333 (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified NO) for ; Sat, 5 Nov 2011 13:02:54 -0700 Received: from ALTPHYEMBEVSP30.RES.AD.JPL ([128.149.137.85]) by ALTVIREHTSTAP01.RES.AD.JPL ([128.149.137.72]) with mapi; Sat, 5 Nov 2011 13:02:53 -0700 From: "Phan, Linh H (3443)" To: "cygwin@cygwin.com" Date: Sat, 05 Nov 2011 20:03:00 -0000 Subject: stderr doesn't work in gdb? Message-ID: <79D001DEDB0DEC47A247B110F3E866820D07BA475D@ALTPHYEMBEVSP30.RES.AD.JPL> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Source-Sender: Linh.H.Phan@jpl.nasa.gov X-AUTH: Authorized Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-11/txt/msg00093.txt.bz2 Hi, it seems there is a problem with stderr when running a program under gdb = in cygwin 1.7.9 with 64 bit Windows 7; eg, if I run this program: #include main() { fprintf(stderr,"stderr does not print out.\n"); fprintf(stdout,"Only stdout does print out.\n"); } (gdb) r Only stdout does print out. The program works fine outside of gdb; ie, stderr does work when not runnin= g in gdb. Does anyone know a fix for this? Thank you, Linh PS This my version of cygwin: CYGWIN_NT-6.1-WOW64 LMC-022482 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin and gdb: GNU gdb (GDB) 7.3.50.20110821-cvs (cygwin-special) I also tested under: GNU gdb 6.8.0.20080328-cvs (cygwin-special) on the same cygwin 1.7.9 on 64 bit Windows7 and the same stderr problem exi= st. -- 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