This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Another proposal for frontends and queries.
- From: Tom Tromey <tromey at redhat dot com>
- To: Marc Khouzam <marc dot khouzam at ericsson dot com>
- Cc: "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 16 Sep 2009 14:42:50 -0600
- Subject: Re: Another proposal for frontends and queries.
- References: <F7CE05678329534C957159168FA70DEC5153600766@EUSAACMS0703.eamcs.ericsson.se>
- Reply-to: tromey at redhat dot com
>>>>> "Marc" == Marc Khouzam <marc.khouzam@ericsson.com> writes:
Marc> Proposals:
[...]
One idea from the user 'heinz' (sorry, I don't know your real name!) was
to have a query in MI mode throw a specific error, then let the front
end reissue the command with the correct response.
This seems like it could be done without much difficulty. We would need
a way to stuff answers into some queue that "query" reads. Maybe we
would need a way to label queries (so that a new response will only be
given to a specific query) -- but this could be just some machine
generated thing sent along with the error.
This struck me as a rather good idea: it is simple to understand and
implement, and doesn't seem to have the issues associated with some
other possible approaches to supporting queries (e.g., reentrant event
loops). I assume I must be missing something ;-)
Tom