From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26738 invoked by alias); 18 Apr 2005 16:21:31 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 26669 invoked from network); 18 Apr 2005 16:21:22 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 18 Apr 2005 16:21:22 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j3IGLMEw016119 for ; Mon, 18 Apr 2005 12:21:22 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j3IGLMO32383; Mon, 18 Apr 2005 12:21:22 -0400 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id j3IGLLeV017234; Mon, 18 Apr 2005 12:21:21 -0400 Subject: [Fwd: Re: strange behaviour -- gdbtk & stdin on winxp] From: Keith Seitz To: "insight@sources.redhat.com" Cc: jim@TheLemkes.ca Content-Type: text/plain Date: Mon, 18 Apr 2005 16:21:00 -0000 Message-Id: <1113841280.4466.0.camel@lindt.uglyboxes.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-q2/txt/msg00006.txt.bz2 Also forwarding to the insight list. Come to think of it, this makes sense... I should have thought of that! Thanks, Keith -------- Forwarded Message -------- From: James Lemke To: Keith Seitz Cc: gdb@sources.redhat.com Subject: Re: strange behaviour -- gdbtk & stdin on winxp Date: Mon, 18 Apr 2005 10:55:26 -0400 On Fri, 2005-04-15 at 16:50, Keith Seitz wrote: > On Fri, 2005-04-15 at 16:36 -0400, James Lemke wrote: > > 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. > > I am assuming that you're trying to run on windows, and your problem > doesn't surprise me in the least. Quite frankly, I don't think we ever > got windows working as well as unix hosts. > > While I would guess this works for native cygwin apps, I'll bet insight > never gets stdin reopened for some "terminal", and I don't believe that > there is any special magic in gdb/insight to re-route stdin calls to the > console window (although on a remote that shouldn't be too hard). > > I suspect some hacking is in your future... FYI and to archive for future searchers... If I use an rxvt window (rxvt -e /bin/bash) vs the default Cygwin window, insight reads from stdin fine just as it does on Linux. Cheers, Jim.