* stderr doesn't work in gdb?
@ 2011-11-05 20:03 Phan, Linh H (3443)
2011-11-05 21:29 ` Ryan Johnson
2011-11-05 22:32 ` Phan, Linh H (3443)
0 siblings, 2 replies; 4+ messages in thread
From: Phan, Linh H (3443) @ 2011-11-05 20:03 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stderr doesn't work in gdb?
2011-11-05 20:03 stderr doesn't work in gdb? Phan, Linh H (3443)
@ 2011-11-05 21:29 ` Ryan Johnson
2011-11-05 22:32 ` Phan, Linh H (3443)
1 sibling, 0 replies; 4+ messages in thread
From: Ryan Johnson @ 2011-11-05 21:29 UTC (permalink / raw)
To: cygwin
On 05/11/2011 4:02 PM, Phan, Linh H (3443) wrote:
> it seems there is a problem with stderr when running a program under gdb in cygwin 1.7.9 with 64 bit Windows 7;
This was fixed some time ago. You might try a snapshot.
Ryan
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* stderr doesn't work in gdb?
2011-11-05 20:03 stderr doesn't work in gdb? Phan, Linh H (3443)
2011-11-05 21:29 ` Ryan Johnson
@ 2011-11-05 22:32 ` Phan, Linh H (3443)
2011-11-05 23:21 ` Mark Geisert
1 sibling, 1 reply; 4+ messages in thread
From: Phan, Linh H (3443) @ 2011-11-05 22:32 UTC (permalink / raw)
To: cygwin
Hi Ryan,
how do I get the snapshot to try? I got the cygwin just this week and I thought that was the latest.
Thanks,
Linh
>> it seems there is a problem with stderr when running a program under gdb in cygwin 1.7.9 with 64 bit Windows 7;
> This was fixed some time ago. You might try a snapshot.
>
> Ryan
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-05 23:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-05 20:03 stderr doesn't work in gdb? Phan, Linh H (3443)
2011-11-05 21:29 ` Ryan Johnson
2011-11-05 22:32 ` Phan, Linh H (3443)
2011-11-05 23:21 ` Mark Geisert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).