This is the mail archive of the
mailing list for the Cygwin project.
stderr doesn't work in gdb?
- 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?
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:
fprintf(stderr,"stderr does not print out.\n");
fprintf(stdout,"Only stdout does print out.\n");
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?
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
GNU gdb (GDB) 188.8.131.5210821-cvs (cygwin-special)
I also tested under:
GNU gdb 184.108.40.20680328-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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple