* remote stdio
@ 2002-01-10 10:27 Graeme Peterson
2002-01-10 17:30 ` Michael Snyder
2002-01-10 18:16 ` Andrew Cagney
0 siblings, 2 replies; 4+ messages in thread
From: Graeme Peterson @ 2002-01-10 10:27 UTC (permalink / raw)
To: gdb
Hi, all.
I have a remote stub working for QNX's remote debug server.
The server manages stdin, out and err, however I am having
trouble finding out how GDB shares the text console's stdin
for a remote target.
When the inferior is given free reign to run, and GDB winds up
waiting for ever, what mechanisms exist to allow any subsequent
keyboard input to be captured and sent to the remote target?
Basically, I want to respond to a getch() in the inferior, or
run a 'vi' session in DDD's execution window via the remote
target connection.
What I have done so far is added the stdin fd to the fd set
for the select() in ser_unix_wait_for (gdb/ser-unix.c). This
works fine for TCP/IP connections, but the code path is not
executed for serial connections. I would also prefer not
to modify the generic GDB source files if a mechanism exists
that I can take advantage of.
Anyone?
Thanks.
Graeme Peterson (aka GP).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: remote stdio
2002-01-10 10:27 remote stdio Graeme Peterson
@ 2002-01-10 17:30 ` Michael Snyder
2002-01-10 18:16 ` Andrew Cagney
1 sibling, 0 replies; 4+ messages in thread
From: Michael Snyder @ 2002-01-10 17:30 UTC (permalink / raw)
To: gdb
Graeme Peterson wrote:
>
> Hi, all.
>
> I have a remote stub working for QNX's remote debug server.
> The server manages stdin, out and err, however I am having
> trouble finding out how GDB shares the text console's stdin
> for a remote target.
It doesn't. The remote protocol has no provision for this.
> When the inferior is given free reign to run, and GDB winds up
> waiting for ever, what mechanisms exist to allow any subsequent
> keyboard input to be captured and sent to the remote target?
None.
> Basically, I want to respond to a getch() in the inferior, or
> run a 'vi' session in DDD's execution window via the remote
> target connection.
If you get it working, please submit it! ;-)
> What I have done so far is added the stdin fd to the fd set
> for the select() in ser_unix_wait_for (gdb/ser-unix.c). This
> works fine for TCP/IP connections, but the code path is not
> executed for serial connections. I would also prefer not
> to modify the generic GDB source files if a mechanism exists
> that I can take advantage of.
Sorry, you are going to have to
1) Extend the remote protocol, and
2) extend gdb.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: remote stdio
2002-01-10 10:27 remote stdio Graeme Peterson
2002-01-10 17:30 ` Michael Snyder
@ 2002-01-10 18:16 ` Andrew Cagney
2002-01-10 18:46 ` gp
1 sibling, 1 reply; 4+ messages in thread
From: Andrew Cagney @ 2002-01-10 18:16 UTC (permalink / raw)
To: Graeme Peterson; +Cc: gdb
To follow up Michael's comment. Check the thread:
http://sources.redhat.com/ml/gdb/2001-03/msg00260.html
Andrew
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: remote stdio
2002-01-10 18:16 ` Andrew Cagney
@ 2002-01-10 18:46 ` gp
0 siblings, 0 replies; 4+ messages in thread
From: gp @ 2002-01-10 18:46 UTC (permalink / raw)
To: Andrew Cagney, Graeme Peterson; +Cc: gdb
Thanks, Andrew and Michael.
If I come up with something elegant and not-too-hacky,
I will certainly submit it. :-)
Cheers.
GP
Andrew Cagney <ac131313@cygnus.com> said:
> To follow up Michael's comment. Check the thread:
>
> http://sources.redhat.com/ml/gdb/2001-03/msg00260.html
>
> Andrew
>
>
--
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-01-11 2:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-10 10:27 remote stdio Graeme Peterson
2002-01-10 17:30 ` Michael Snyder
2002-01-10 18:16 ` Andrew Cagney
2002-01-10 18:46 ` gp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox