From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8717 invoked by alias); 29 Jul 2009 23:56:03 -0000 Received: (qmail 8700 invoked by uid 22791); 29 Jul 2009 23:56:02 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_37,SPF_PASS X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Jul 2009 23:55:53 +0000 Received: from totara (223.63.255.123.dynamic.snap.net.nz [123.255.63.223]) by viper.snap.net.nz (Postfix) with ESMTP id 5EA5E3DA757; Thu, 30 Jul 2009 11:55:50 +1200 (NZST) Received: by totara (Postfix, from userid 1000) id 4EF82C160; Thu, 30 Jul 2009 11:55:49 +1200 (NZST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19056.57733.247579.68268@totara.tehura.co.nz> Date: Thu, 30 Jul 2009 00:41:00 -0000 To: Tom Tromey Cc: "Marc Khouzam" , , gdb-patches@sourceware.org Subject: [PATCH] util.c + doc [was Re: [RFC] Queries and frontends] In-Reply-To: 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> From: nickrob@snap.net.nz (Nick Roberts) 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/msg00725.txt.bz2 > I tend to think that the more generic change would be safe, and cleaner. This should do it. -- Nick http://www.inet.net.nz/~nickrob 2009-07-30 Nick Roberts * utils.c (defaulted_query): Don't ask for confirmation if server prefix is used. 2009-07-30 Nick Roberts * gdb.texinfo (Server Prefix): Explain that server prefix suppresses confirmation request. *** 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 **** } /* Automatically answer the default value if the user did not want ! prompts. */ ! if (! caution) return def_value; /* If input isn't coming from the user directly, just say what --- 1436,1443 ---- } /* 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; /* If input isn't coming from the user directly, just say what *** 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 value history, use the @code{output} command instead of the @code{print} command. + It also disables confirmation requests irrespective of the value of + the @code{show confirm} command (@pxref{Messages/Warnings, ,Optional + Warnings and Messages}). + @node Prompting @section Annotation for @value{GDBN} Input