gdb/remote - I/O
Andrew Cagney
ac131313@cygnus.com
Mon May 14 08:55:00 GMT 2001
Hello,
Given the recent discussion on the qSymbol packet and a comment that the
target should be able to initiate such an interaction, I'd like to
propose the following as a possible interaction.
<target running>
<- T00;qSymbol;qIn;
.
i.e. the target can stop and
drop a big hint that it would
like to be probed for the given
packet - here qSymbol and qIn
The target has also bundled up
some output data.
-> qIn;<bytes-of-input>
Something goes in the .....
it might be bytes of input
it might be something else
<- "" packet not recognized
<- "OK" nothing at present
-> qSymbol....
<- ....
-> qSumbol....
<- ....
-> C
The exchange is finished continue
the target.
<target resumes execution>
The main point is that this allows the target to initiate an interaction
by pigybacking what they want on a dummy ``T'' packet while at the same
time leaving the host in control - all interactions still being host
initiated.
Andrew
More information about the Gdb
mailing list