From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16468 invoked by alias); 15 Apr 2005 20:36:57 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 16419 invoked from network); 15 Apr 2005 20:36:50 -0000 Received: from unknown (HELO shoal.thelemkes.ca) (66.96.18.66) by sourceware.org with SMTP; 15 Apr 2005 20:36:50 -0000 Received: from [192.168.62.32] (unknown [192.168.62.32]) by shoal.thelemkes.ca (Postfix) with ESMTP id 57F8420166 for ; Fri, 15 Apr 2005 16:36:49 -0400 (EDT) Subject: strange behaviour -- gdbtk & stdin on winxp From: James Lemke To: gdb@sources.redhat.com Content-Type: text/plain Message-Id: <1113597409.18830.311.camel@keel.thelemkes.ca> Mime-Version: 1.0 Date: Fri, 15 Apr 2005 20:36:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-04/txt/msg00105.txt.bz2 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