From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15945 invoked by alias); 24 Feb 2010 13:42:48 -0000 Received: (qmail 15926 invoked by uid 22791); 24 Feb 2010 13:42:46 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 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; Wed, 24 Feb 2010 13:42:41 +0000 Received: from eusaamw0706.eamcs.ericsson.se ([147.117.20.31]) by imr2.ericy.com (8.13.1/8.13.1) with ESMTP id o1ODiTaW025092; Wed, 24 Feb 2010 07:44:29 -0600 Received: from EUSAACMS0703.eamcs.ericsson.se ([169.254.1.20]) by eusaamw0706.eamcs.ericsson.se ([147.117.20.31]) with mapi; Wed, 24 Feb 2010 08:42:23 -0500 From: Marc Khouzam To: "'Hui Zhu'" , "'tromey@redhat.com'" CC: "'gdb@sourceware.org'" Date: Wed, 24 Feb 2010 16:41: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/msg00167.txt.bz2 > Do you think we can add a command to set the non-terminal=20 > query answer? > For example: > set non-terminal-query-default yes/no/auto > auto This is the default value. query/yquery/nquery answer=20 > will like before. > yes query/yquery/nquery answer will be yes > no query/yquery/nquery answer will be no This is not perfect because every query would be answered the same way. From a non-terminal, you many want to answer 'y' to one query and 'n' to another. Furthermore, sometimes the query is not directly triggered by the command used. For 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. I believe the cleanest solution up to now was to have individual setting for each query. I didn't like that too much myself, but I don't have a better suggestion. > > This was my problem with Eclipse and PRecord. =A0When a query=20 > is answered > > not from a terminal it always takes the the default > > (N for nquery(), Y for for query() and yquery()). > > That is why we had to make PRecord use query() instead of nquery() > > >=20 > This is really a long issue. I remember that someone said this issue > will be handle by MI after 7.0 release. >=20 > Thanks, > Hui >=20