From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27454 invoked by alias); 17 Sep 2009 00:48:15 -0000 Received: (qmail 27445 invoked by uid 22791); 17 Sep 2009 00:48:15 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS 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, 17 Sep 2009 00:48:10 +0000 Received: from eusrcmw751.eamcs.ericsson.se (eusrcmw751.exu.ericsson.se [138.85.77.51]) by imr1.ericy.com (8.13.1/8.13.1) with ESMTP id n8H0lXXZ005697; Wed, 16 Sep 2009 19:47:33 -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 19:47:32 -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 19:47: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 20:47:31 -0400 From: Marc Khouzam To: Michael Snyder CC: "'tromey@redhat.com'" , "'Joel Brobecker'" , "'gdb-patches@sourceware.org'" Date: Thu, 17 Sep 2009 00:48:00 -0000 Subject: RE: Another proposal for frontends and queries. Message-ID: References: <20090914140910.GD8327@adacore.com> <4AB17FFA.4060100@vmware.com> In-Reply-To: <4AB17FFA.4060100@vmware.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/msg00553.txt.bz2 > >> Also, if an expression does multiple assignments, are=20 > there multiple > >> queries or just one? It seems like there should just be one. > >=20 > > I tried: > > (gdb) p foo(3)+foo(4) > > and got a single query. > >=20 > > Pretty nice. >=20 > Marc, did you answer yes or no to the query? > And have you tried the opposite? I tried 'y' as well as 'n' and there was only a single query both times. I also re-did the test with=20 (gdb) p foo(3) + bar(4) with each method changing a different memory location and I was able to see that when pressing 'n' neither of the memory location was change, while when pressing 'y' both memory locations were changed. It's bullet-proof! :-)=20=20 (except for nquery and frontends :-O)