This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb/remote - I/O
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: gdb/remote - I/O
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sun, 13 May 2001 12:36:02 -0400
- Cc: GDB Discussion <gdb at sources dot redhat dot com>
- References: <3ABBDDE4.7C22709D@cygnus.com>
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