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: Joel Brobecker <brobecker at adacore 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: Mon, 14 Sep 2009 07:09:10 -0700
- Subject: Re: Another proposal for frontends and queries.
- References: <F7CE05678329534C957159168FA70DEC5153600766@EUSAACMS0703.eamcs.ericsson.se>
> Another proposal that was thrown out there was to disable queries
> when having started GDB with the MI interpreter. The idea is that
> it would be frontends that would start GDB like that, and frontends
> know what they are doing and don't need queries.
> http://sourceware.org/ml/gdb/2009-07/msg00113.html
> This seems too drastic to me.
Isn't this is the approach that has always been taken in the past?
I think that we should bite the bullet and implement this approach.
The only issue, really, is how to detect that situation from the FE
so that it can itself ask the user for confirmation before it sends
the command... Or perhaps, another approach is to return an error
(like it probably does now) that the frontend detect, and then provide
a switch for that command to force the execution of that command despite
the reported consequences.
--
Joel