public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [Fwd: Re: strange behaviour -- gdbtk & stdin on winxp]
@ 2005-04-18 16:21 Keith Seitz
  0 siblings, 0 replies; only message in thread
From: Keith Seitz @ 2005-04-18 16:21 UTC (permalink / raw)
  To: insight; +Cc: jim

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 <jim@TheLemkes.ca>
To: Keith Seitz <keiths@redhat.com>
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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-18 16:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-18 16:21 [Fwd: Re: strange behaviour -- gdbtk & stdin on winxp] Keith Seitz

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).