delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/05/16:03:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: "Phan, Linh H (3443)" <Linh DOT H DOT Phan AT jpl DOT nasa DOT gov>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Sat, 5 Nov 2011 13:02:53 -0700
Subject: stderr doesn't work in gdb?
Message-ID: <79D001DEDB0DEC47A247B110F3E866820D07BA475D@ALTPHYEMBEVSP30.RES.AD.JPL>
MIME-Version: 1.0
X-Source-Sender: Linh DOT H DOT Phan AT jpl DOT nasa DOT gov
X-AUTH: Authorized
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pA5K3E5j001531

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 <stdio.h>
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 running 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 exist.

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


- Raw text -


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