From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10279 invoked by alias); 25 Feb 2010 06:34:34 -0000 Received: (qmail 10257 invoked by uid 22791); 25 Feb 2010 06:34:33 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from mail-pz0-f173.google.com (HELO mail-pz0-f173.google.com) (209.85.222.173) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 25 Feb 2010 06:34:28 +0000 Received: by pzk3 with SMTP id 3so592591pzk.24 for ; Wed, 24 Feb 2010 22:34:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.195.19 with SMTP id s19mr359352wff.312.1267079666108; Wed, 24 Feb 2010 22:34:26 -0800 (PST) In-Reply-To: References: From: Hui Zhu Date: Thu, 25 Feb 2010 16:26:00 -0000 Message-ID: Subject: Re: How to set default value of yquery and nquery To: Marc Khouzam Cc: "tromey@redhat.com" , "gdb@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00174.txt.bz2 On Wed, Feb 24, 2010 at 21:42, Marc Khouzam wro= te: > >> Do you think we can add a command to set the non-terminal >> query answer? >> For example: >> set non-terminal-query-default yes/no/auto >> auto This is the default value. query/yquery/nquery answer >> will like before. >> yes =A0query/yquery/nquery answer will be yes >> no =A0query/yquery/nquery answer will be no > > This is not perfect because every query would be answered > the same way. =A0From a non-terminal, you many want to answer > 'y' to one query and 'n' to another. > For my idea, it just to handle the query/yquery/nquery and simple commands. After this command complete, set it back to auto can handle it. > > Furthermore, sometimes the query is not directly triggered > by the command used. =A0For example, changing a variable value > will trigger a query from PRecord, but it is not really > the 'set' command that sends the query, it is PRecord. > Sorry for make you spend a lot of time on query and prec, I think yquery and nquery didn't can be control when non-terminal is really a big trouble. I will try to make each of them have a set commands. And could you tell me which one make you feel bad? I will do it first. :) > I believe the cleanest solution up to now was to have > individual setting for each query. =A0I didn't like that too much > myself, but I don't have a better suggestion. > I suggest each nquery or yquery have a set command together. The more clear way I think is the query will tell user howto set it non-terminal. Maybe it is too tangled. Best regards, Hui