From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27029 invoked by alias); 25 Feb 2010 15:28:10 -0000 Received: (qmail 27010 invoked by uid 22791); 25 Feb 2010 15:28:09 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 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, 25 Feb 2010 15:28:05 +0000 Received: from eusaamw0711.eamcs.ericsson.se ([147.117.20.178]) by imr1.ericy.com (8.13.1/8.13.1) with ESMTP id o1PFTv42009590; Thu, 25 Feb 2010 09:29:57 -0600 Received: from EUSAACMS0703.eamcs.ericsson.se ([169.254.1.20]) by eusaamw0711.eamcs.ericsson.se ([147.117.20.178]) with mapi; Thu, 25 Feb 2010 10:27:46 -0500 From: Marc Khouzam To: Hui Zhu CC: "tromey@redhat.com" , "gdb@sourceware.org" Date: Fri, 26 Feb 2010 00:23:00 -0000 Subject: RE: How to set default value of yquery and nquery Message-ID: References: In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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/msg00175.txt.bz2 =20 > -----Original Message----- > From: Hui Zhu [mailto:teawater@gmail.com]=20 > Sent: February-25-10 1:34 AM > To: Marc Khouzam > Cc: tromey@redhat.com; gdb@sourceware.org > Subject: Re: How to set default value of yquery and nquery >=20 > On Wed, Feb 24, 2010 at 21:42, Marc Khouzam=20 > wrote: > > > >> Do you think we can add a command to set the non-terminal query=20 > >> answer? > >> For example: > >> set non-terminal-query-default yes/no/auto auto This is=20 > the default=20 > >> value. query/yquery/nquery answer will like before. > >> yes =A0query/yquery/nquery answer will be yes no =A0 > query/yquery/nquery=20 > >> answer will be no > > > > This is not perfect because every query would be answered the same=20 > > way. =A0From a non-terminal, you many want to answer 'y' to one query=20 > > and 'n' to another. > > >=20 > For my idea, it just to handle the query/yquery/nquery and=20 > simple commands. > After this command complete, set it back to auto can handle it. But sometimes you don't know if a command will cause a query, like for Precord. > > Furthermore, sometimes the query is not directly triggered by the=20 > > command used. =A0For example, changing a variable value will=20 > trigger a=20 > > query from PRecord, but it is not really the 'set' command=20 > that sends=20 > > the query, it is PRecord. > > >=20 > Sorry for make you spend a lot of time on query and prec, I=20 > think yquery and nquery didn't can be control when=20 > non-terminal is really a big trouble. > I will try to make each of them have a set commands. And=20 > could you tell me which one make you feel bad? I will do it=20 > first. :) Everything if fixed now because you don't use nquery() anymore. So, there is nothing to fix :-) > > I believe the cleanest solution up to now was to have individual=20 > > setting for each query. =A0I didn't like that too much myself, but I=20 > > don't have a better suggestion. > > >=20 > I suggest each nquery or yquery have a set command together. Yes, I believe that was what the maintainers suggested. And you have this for pending breakpoints. > The more clear way I think is the query will tell user howto=20 > set it non-terminal. Maybe it is too tangled. I didn't understand this.