From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23278 invoked by alias); 14 Sep 2009 14:57:29 -0000 Received: (qmail 23267 invoked by uid 22791); 14 Sep 2009 14:57:28 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from imr2.ericy.com (HELO imr2.ericy.com) (198.24.6.3) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Sep 2009 14:57:23 +0000 Received: from eusrcmw751.eamcs.ericsson.se (eusrcmw751.exu.ericsson.se [138.85.77.51]) by imr2.ericy.com (8.13.1/8.13.1) with ESMTP id n8EEubr2002077; Mon, 14 Sep 2009 09:56:39 -0500 Received: from eusrcmw750.eamcs.ericsson.se ([138.85.77.50]) by eusrcmw751.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959); Mon, 14 Sep 2009 09:55:44 -0500 Received: from eusaamw0706.eamcs.ericsson.se ([147.117.20.31]) by eusrcmw750.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959); Mon, 14 Sep 2009 09:55:44 -0500 Received: from EUSAACMS0703.eamcs.ericsson.se ([169.254.1.20]) by eusaamw0706.eamcs.ericsson.se ([147.117.20.31]) with mapi; Mon, 14 Sep 2009 10:55:44 -0400 From: Marc Khouzam To: "'Pedro Alves'" , "'gdb-patches@sourceware.org'" CC: "'Joel Brobecker'" Date: Mon, 14 Sep 2009 14:57:00 -0000 Subject: RE: Another proposal for frontends and queries. Message-ID: References: <20090914140910.GD8327@adacore.com> <200909141548.53578.pedro@codesourcery.com> In-Reply-To: <200909141548.53578.pedro@codesourcery.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00401.txt.bz2 > -----Original Message----- > From: gdb-patches-owner@sourceware.org=20 > [mailto:gdb-patches-owner@sourceware.org] On Behalf Of Pedro Alves > Sent: Monday, September 14, 2009 10:49 AM > To: gdb-patches@sourceware.org > Cc: Marc Khouzam; 'Joel Brobecker' > Subject: Re: Another proposal for frontends and queries. >=20 > On Monday 14 September 2009 15:27:08, Marc Khouzam wrote: > > Having a switch on a command turns out to be insufficient because > > there is not a 1-1 mapping between queries and commands. =A0Currently > > PRecord will query before changing memory, but this will be=20 > triggered > > by any of: > > -var-assign a 8 > > p a=3D8 > > set var a=3D8 > > and others. >=20 > To me, this all sounds like we should should revisit why precord uses > nquery at all. If we stopped using nquery, and used query (defaulting > to the action a frontend might want), what would the user lose? > Having to type n + enter, instead of just enter to cancel,=20 > doesn't seem like > a bad deal to me. Plus, wouldn't we want these particular offending > precord queries to default to 'y' even when in script/batch mode? >=20 > I think we should scrap out nquery from record.c, turning those to > query's, 'error's or normal stops, appropriately. What would=20 > be missed? You got my vote. =20 > There's issue of how does a frontend handle queries in a cli console > with -interpreter-exec cli (how does a frontend simulate queries > done on a a real CLI attached to a terminal), but that seems like > a mostly independent problem. For Eclipse, we pretty much turn off queries for our CLI console. It is not the best solution, but since we don't want queries for our UI using MI, we don't have a choice. But you are right that is another issue. Thanks, Marc