From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26823 invoked by alias); 30 Jul 2009 14:00:36 -0000 Received: (qmail 26805 invoked by uid 22791); 30 Jul 2009 14:00:33 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from imr1.ericy.com (HELO imr1.ericy.com) (198.24.6.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 30 Jul 2009 14:00:28 +0000 Received: from eusrcmw750.eamcs.ericsson.se (eusrcmw750.exu.ericsson.se [138.85.77.50]) by imr1.ericy.com (8.13.1/8.13.1) with ESMTP id n6UE02a2019311; Thu, 30 Jul 2009 09:00:03 -0500 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw750.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959); Thu, 30 Jul 2009 08:59:40 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH] util.c + doc [was Re: [RFC] Queries and frontends] Date: Thu, 30 Jul 2009 16:02:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA07CA0BCA@ecamlmw720.eamcs.ericsson.se> In-Reply-To: <19057.9274.357301.662062@totara.tehura.co.nz> References: <6D19CA8D71C89C43A057926FE0D4ADAA07C00023@ecamlmw720.eamcs.ericsson.se><19045.23703.743876.775308@totara.tehura.co.nz><19053.2107.342469.683795@totara.tehura.co.nz><19054.23189.193878.534661@totara.tehura.co.nz><19056.57733.247579.68268@totara.tehura.co.nz><6D19CA8D71C89C43A057926FE0D4ADAA07CA09F1@ecamlmw720.eamcs.ericsson.se> <19057.9274.357301.662062@totara.tehura.co.nz> From: "Marc Khouzam" To: "Nick Roberts" Cc: "Tom Tromey" , 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-07/txt/msg00740.txt.bz2 =20 > -----Original Message----- > From: Nick Roberts [mailto:nickrob@snap.net.nz]=20 > Sent: Thursday, July 30, 2009 12:40 AM > To: Marc Khouzam > Cc: Tom Tromey; gdb-patches@sourceware.org > Subject: RE: [PATCH] util.c + doc [was Re: [RFC] Queries and=20 > frontends] >=20 >=20 > > Doesn't this amount to using "set confirm off"? > > I might have missed it, but I don't remember why you didn't want > > use that instead? >=20 > In the console, the user can type "set confirm on/off"=20 > according to his > preference. This change ensures that confirmation isn't=20 > required for commands > that the frontend runs behind the users back independently of=20 > this setting, > provided they are prefixed with "server". This is only for=20 > CLI commands and > does not affect frontends which use GDB/MI. You are right, that won't help me. Sorry about the confusion. >=20 > > And this solution does not help (some) frontends with=20 > > answering 'y' to nquery() >=20 > nquery will indeed default to 'n'. >=20 > > How about: > >=20 > > if (! caution) > > return def_value; > >=20 > > if (server_command) > > return 1; >=20 > That might give surprising results, e.g. accidentally setting pending > breakpoints. >=20 > AFAIK this change is for _one_ frontend (Emacs) to use _one_=20 > command (record > stop). I think too much generality detracts from this=20 > objective as, unlike > GDB/MI, the plan is not to develop annotations. >=20 > --=20 > Nick=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 > http://www.inet.net.nz/~nickrob >=20