Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: asynchronous MI output commands
@ 2006-05-07 22:30 Bjarke Viksoe
  2006-05-07 22:50 ` Daniel Jacobowitz
  2006-05-11 10:31 ` MI: anynchronous vs. synchronous Vladimir Prus
  0 siblings, 2 replies; 5+ messages in thread
From: Bjarke Viksoe @ 2006-05-07 22:30 UTC (permalink / raw)
  To: gdb

>Daniel Jacobowitz wrote:
>
>If I were writing a front-end, I would have an arbitration layer which
>sent questions to GDB and received answers.  The answers will come back
>one at a time, in the same order the questions were asked.  If you send
>two -var-evaluate-expression commands, you'll get back two answers, in
>that same order.
>
>Am I missing something?  Is there a reason that this isn't enough?

No, the abstraction layer is exactly my design - but as I explained: the 
goal of my tool is that it's used over a remote line (eg. SSH over internet) 
where the answer can be a couple of 100ms delayed. It is most desirable to 
be able to send multiple commands and have the front-end digest the answer 
as they slowly arrive - updating the UI in increments.
Yes, my views need to send multiple -var-evaluate-expression and this is the 
reason that I'm forced to restrict the design to what you describe. The 
reason it's not good enough: it so slow.

Because of the latency, my "abstraction layer" runs in its own thread. This 
makes the UI wonderfully responsive, but doesnÂ’t allow a component/view to 
submit a command and read the answer in the same context. Answers arrive out 
of context and are processed separately - creating a high need to know what 
the answer originated from.

bjarke
BVRDE - bvrde.sourceforge.net



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-05-11  8:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-07 22:30 asynchronous MI output commands Bjarke Viksoe
2006-05-07 22:50 ` Daniel Jacobowitz
2006-05-08  0:36   ` Bjarke Viksoe
2006-05-08  1:52     ` Daniel Jacobowitz
2006-05-11 10:31 ` MI: anynchronous vs. synchronous Vladimir Prus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox