This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
strange behaviour -- gdbtk & stdin on winxp
- From: James Lemke <jim at TheLemkes dot ca>
- To: gdb at sources dot redhat dot com
- Date: Fri, 15 Apr 2005 16:36:49 -0400
- Subject: strange behaviour -- gdbtk & stdin on winxp
I did some searching on the archives but didn't find anything similar.
I'm using xscale-elf-insight.exe built from 6.1 sources, serially
connected to an xscale board. I'm debugging a simple program that reads
a string via fgets((char *)input_char, MAX_INPUT_LINE, stdin).
All works as expected with xscale-elf-gdb or xscale-elf-insight -nw.
But with the GUI, fgets() returns immediately with NULL, and errno set
to 9 (EBADF).
When built for a Linux host, xscale-elf-insight with and without -nw
work fine.
Does this problem sound familiar to anyone?
Jim.
--
James Lemke jim@TheLemkes.ca Orillia, Ontario
1992 ST1100, STOC #3750; FWD# M:245401 H:246889
Life is what happens while you're busy making other plans. --John Lennon