From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19887 invoked by alias); 14 Sep 2009 13:07:15 -0000 Received: (qmail 19879 invoked by uid 22791); 14 Sep 2009 13:07:14 -0000 X-SWARE-Spam-Status: No, hits=-2.0 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 13:07:08 +0000 Received: from eusrcmw750.eamcs.ericsson.se (eusrcmw750.exu.ericsson.se [138.85.77.50]) by imr2.ericy.com (8.13.1/8.13.1) with ESMTP id n8ED71cH029414; Mon, 14 Sep 2009 08:07:03 -0500 Received: from eusrcmw751.eamcs.ericsson.se ([138.85.77.51]) by eusrcmw750.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959); Mon, 14 Sep 2009 08:06:08 -0500 Received: from eusaamw0711.eamcs.ericsson.se ([147.117.20.178]) by eusrcmw751.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959); Mon, 14 Sep 2009 08:06:08 -0500 Received: from EUSAACMS0703.eamcs.ericsson.se ([169.254.1.20]) by eusaamw0711.eamcs.ericsson.se ([147.117.20.178]) with mapi; Mon, 14 Sep 2009 09:06:08 -0400 From: Marc Khouzam To: Vladimir Prus , "gdb-patches@sources.redhat.com" Date: Mon, 14 Sep 2009 13:07:00 -0000 Subject: RE: Another proposal for frontends and queries. Message-ID: References: In-Reply-To: Content-Type: text/plain; charset="us-ascii" 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/msg00395.txt.bz2 > -----Original Message----- > From: gdb-patches-owner@sourceware.org=20 > [mailto:gdb-patches-owner@sourceware.org] On Behalf Of Vladimir Prus > Sent: September-14-09 2:42 AM > To: gdb-patches@sources.redhat.com > Subject: Re: Another proposal for frontends and queries. >=20 > Marc Khouzam wrote: >=20 > > Hi, > >=20 > > I'm starting a new thread in an attempt to get this issue=20 > resolved before 7.0. > >=20 > > Three-line recap of the issue: > >=20 > > For some frontends queries are answered automatically by GDB. > > Because of this, some actions that the frontends wants to trigger > > are automatically cancelled by GDB. > ... > > My latest idea, based on the reactions to the previous suggestions > > is to extend "set confirm" and add a new "force" option. > > set confirm on/off would remain as before > > set confirm force would automatically answer 'y' to all queries. >=20 > So, the current problem is that some queries for which the frontend > wants implicit 'yes' are answered as 'no'. You propose an option to > make all queries answered as 'yes'. What if frontend wants some query > answered as 'no'?=20 Currently, all queries use 'y' to mean "perform action" and 'n' to mean "cancel action". Therefore, if a frontend does not want an action performed, it should simply not send the command that will trigger the action/query. So, currently, there is no reason for a frontend to want to force a 'n' to a query. In the future, if this case does come up, we will need a specific option for such a new query, kind of like "show/set breakpoint pending". But I'm open to a new suggestion. Thanks, Marc