From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5432 invoked by alias); 16 Sep 2009 14:43:49 -0000 Received: (qmail 5422 invoked by uid 22791); 16 Sep 2009 14:43:48 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,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; Wed, 16 Sep 2009 14:43:39 +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 n8GEhETK006578; Wed, 16 Sep 2009 09:43:14 -0500 Received: from eusrcmw750.eamcs.ericsson.se ([138.85.77.50]) by eusrcmw751.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 Sep 2009 09:42:33 -0500 Received: from eusaamw0711.eamcs.ericsson.se ([147.117.20.178]) by eusrcmw750.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 Sep 2009 09:42:32 -0500 Received: from EUSAACMS0703.eamcs.ericsson.se ([169.254.1.20]) by eusaamw0711.eamcs.ericsson.se ([147.117.20.178]) with mapi; Wed, 16 Sep 2009 10:42:32 -0400 From: Marc Khouzam To: "'Joel Brobecker'" , "'Hui Zhu'" CC: "'Pedro Alves'" , "'gdb-patches@sourceware.org'" , "'Michael Snyder'" Date: Wed, 16 Sep 2009 14:43:00 -0000 Subject: RE: Another proposal for frontends and queries. Message-ID: References: <200909161425.48262.pedro@codesourcery.com> <20090916142543.GC8910@adacore.com> In-Reply-To: <20090916142543.GC8910@adacore.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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-09/txt/msg00515.txt.bz2 > -----Original Message----- > From: Joel Brobecker [mailto:brobecker@adacore.com]=20 > Sent: Wednesday, September 16, 2009 10:26 AM > To: Hui Zhu > Cc: Marc Khouzam; Pedro Alves; gdb-patches@sourceware.org;=20 > Michael Snyder > Subject: Re: Another proposal for frontends and queries. >=20 > > And about the patch I said can handle this issue is "set=20 > record query > > " patch. I cannot find who don't like this patch. >=20 > I am one of the maintainers would dislike this idea. >=20 > > On the other hand, about the nquery. > > Let me talk my idea. The nquery is a function of GDB=20 > right? MI is a > > function of GDB too. Eclipse is a very important soft that support > > GDB. > > If you want change nquery to query, why not remove nquery directly? >=20 > I had the same thoughts, actually. But we have one more usage of that > function relative to pending breakpoints, and for some reason it was > decided that the default was 'n' rather than 'y'. Not sure why. The whole nquery/yquery was introduced because of pending breakpoints. If I understand the emails properly (http://sourceware.org/ml/gdb/2004-02/m= sg00108.html) the new pending breakpoint feature broke the test scripts because breakpoints that failed to install would now be made pending. The nquery was meant to have the test scripts avoid that change. I wonder if the flag "set breakpoint pending" was added after that. Using this flag probably would have been good enough to avoid the=20 whole nquery. Maybe that is a solution we can take? Remove nquery/yquery and use "set breakpoint pending" for the pending breakpoints in test scripts? >=20 > I'm also thinking that what we need is an enhancement of the=20 > MI protocol > to handle queries that the frontends can then pass to the user for > answering. But this is just a wild idea at this point, as I=20 > don't know > the MI protocol much. Plus, it would probably be a fairly significant > update unsuitable for 7.0. >=20 > --=20 > Joel >=20