From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6354 invoked by alias); 30 Jul 2009 00:28:56 -0000 Received: (qmail 6337 invoked by uid 22791); 30 Jul 2009 00:28:55 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_37,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; Thu, 30 Jul 2009 00:28:48 +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 n6U0SHeM013143; Wed, 29 Jul 2009 19:28:17 -0500 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw751.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959); Wed, 29 Jul 2009 19:28:00 -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 00:42:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA07CA09F1@ecamlmw720.eamcs.ericsson.se> In-Reply-To: <19056.57733.247579.68268@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> From: "Marc Khouzam" To: "Nick Roberts" , "Tom Tromey" Cc: , 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/msg00727.txt.bz2 =20 > -----Original Message----- > From: gdb-owner@sourceware.org=20 > [mailto:gdb-owner@sourceware.org] On Behalf Of Nick Roberts > Sent: July-29-09 7:56 PM > To: Tom Tromey > Cc: Marc Khouzam; gdb@sourceware.org; gdb-patches@sourceware.org > Subject: [PATCH] util.c + doc [was Re: [RFC] Queries and frontends] >=20 >=20 > > I tend to think that the more generic change would be=20 > safe, and cleaner. >=20 > This should do it. > --=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 >=20 > 2009-07-30 Nick Roberts >=20 > * utils.c (defaulted_query): Don't ask for confirmation=20 > if server > prefix is used. >=20 >=20 > 2009-07-30 Nick Roberts >=20 > * gdb.texinfo (Server Prefix): Explain that server=20 > prefix suppresses > confirmation request. >=20 >=20 > *** utils.c.~1.215.~ 2009-07-22 15:29:54.000000000 +1200 > --- utils.c 2009-07-30 11:39:08.000000000 +1200 > *************** defaulted_query (const char *ctlstr, con > *** 1436,1443 **** > } >=20=20=20 > /* Automatically answer the default value if the user did not want > ! prompts. */ > ! if (! caution) > return def_value; >=20=20=20 > /* If input isn't coming from the user directly, just say what > --- 1436,1443 ---- > } >=20=20=20 > /* Automatically answer the default value if the user did not want > ! prompts or the command was issued with the server prefix. */ > ! if (! caution || server_command) > return def_value; >=20=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? And this solution does not help (some) frontends with=20 answering 'y' to nquery() =20 How about: if (! caution) return def_value; if (server_command) return 1; > /* If input isn't coming from the user directly, just say what >=20 >=20 >=20 > *** gdb.texinfo.~1.609.~ 2009-07-29 18:47:32.000000000 +1200 > --- gdb.texinfo 2009-07-30 11:49:16.000000000 +1200 > *************** The server prefix does not affect the re > *** 25607,25612 **** > --- 25607,25616 ---- > history; to print a value without recording it into the=20 > value history, > use the @code{output} command instead of the @code{print} command. >=20=20=20 > + It also disables confirmation requests irrespective of the value of > + the @code{show confirm} command (@pxref{Messages/Warnings, ,Optional > + Warnings and Messages}). > +=20 > @node Prompting > @section Annotation for @value{GDBN} Input >=20=20=20 >=20