This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gdb/remote - I/O


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]