Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Dave Korn" <dave.korn@artimi.com>
To: "'James Lemke'" <jim@TheLemkes.ca>, "'Keith Seitz'" <keiths@redhat.com>
Cc: <gdb@sources.redhat.com>
Subject: RE: strange behaviour -- gdbtk & stdin on winxp
Date: Mon, 18 Apr 2005 16:17:00 -0000	[thread overview]
Message-ID: <SERRANOkCc8JmTwj2hZ000001c0@SERRANO.CAM.ARTIMI.COM> (raw)
In-Reply-To: <1113836126.5227.49.camel@keel.thelemkes.ca>

----Original Message----
>From: James Lemke
>Sent: 18 April 2005 15:55

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


  Jim, do you have 'tty' set in your $CYGWIN environment variable?  I don't
know if it'll help or not, but it affects tty-handling in the cygwin lib:

http://cygwin.com/cygwin-ug-net/using-cygwinenv.html

"(no)tty - if set, Cygwin enables extra support (i.e., termios) for
UNIX-like ttys. It is not compatible with some Windows programs. Defaults to
not set, in which case the tty is opened in text mode. Note that this has
been changed such that ^D works as expected instead of ^Z, and is settable
via stty. This option must be specified before starting a Cygwin shell and
it cannot be changed in the shell."

  It might or might not help to experiment with it.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


  reply	other threads:[~2005-04-18 16:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-15 20:36 James Lemke
2005-04-15 20:50 ` Keith Seitz
2005-04-15 21:13   ` James Lemke
2005-04-18 14:55   ` James Lemke
2005-04-18 16:17     ` Dave Korn [this message]
2005-04-18 17:47       ` James Lemke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SERRANOkCc8JmTwj2hZ000001c0@SERRANO.CAM.ARTIMI.COM \
    --to=dave.korn@artimi.com \
    --cc=gdb@sources.redhat.com \
    --cc=jim@TheLemkes.ca \
    --cc=keiths@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox