This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]