From: Andrew Cagney <ac131313@cygnus.com>
To: Grant Edwards <grante@visi.com>
Cc: Joel Brenner <"\x03joel".brenner@tchip.com>, gdb@sourceware.cygnus.com
Subject: Re: Semihosting output on ARM7TDMI
Date: Tue, 14 Aug 2001 08:33:00 -0000 [thread overview]
Message-ID: <3B7944AE.5000902@cygnus.com> (raw)
In-Reply-To: <20010814095805.A8415@visi.com>
> It looks like it needs to be changed so that it is
> pre-initialized so that stdin, stdout, and stderr are
> "pre-opened". I think you'll need to change the code in
> rdi-share/hsys.c HostSysInit() so that fds 0,1,2, are
> initialized to map to FILE pointers stdin, stdout, stderr.
Almost. The theory is right.
For output the ``struct ui_file'' objects gdb_std*, normally target
output is sent to gdb_stdtarg (one day I'll remember to rename it to
gdb_targout).
For input, things get messy, if you look at remote.c and fixme's from me
there are hopefully enough hints on how it can be done, in theory. It
is made complicated by the fact that there is an event look wanting a
look-in.
Andrew
next prev parent reply other threads:[~2001-08-14 8:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-14 4:51 Joel Brenner
2001-08-14 7:56 ` Grant Edwards
2001-08-14 8:33 ` Andrew Cagney [this message]
2001-08-14 8:46 ` Grant Edwards
2001-08-14 9:11 ` Andrew Cagney
2001-08-14 9:24 ` Grant Edwards
2001-08-14 9:31 ` Keith Seitz
2001-08-14 11:43 ` Grant Edwards
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=3B7944AE.5000902@cygnus.com \
--to=ac131313@cygnus.com \
--cc="\x03joelbrenner"@tchip.com \
--cc=gdb@sourceware.cygnus.com \
--cc=grante@visi.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