From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16034 invoked by alias); 16 Sep 2009 20:35:08 -0000 Received: (qmail 16022 invoked by uid 22791); 16 Sep 2009 20:35:08 -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; Wed, 16 Sep 2009 20:35:02 +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 n8GKYjth003275; Wed, 16 Sep 2009 15:34:48 -0500 Received: from eusrcmw751.eamcs.ericsson.se ([138.85.77.56]) by eusrcmw751.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 Sep 2009 15:33:07 -0500 Received: from eusaamw0712.eamcs.ericsson.se ([147.117.20.181]) by eusrcmw751.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 Sep 2009 15:33:07 -0500 Received: from EUSAACMS0703.eamcs.ericsson.se ([169.254.1.20]) by eusaamw0712.eamcs.ericsson.se ([147.117.20.181]) with mapi; Wed, 16 Sep 2009 16:33:07 -0400 From: Marc Khouzam To: "'tromey@redhat.com'" CC: "'Joel Brobecker'" , "'gdb-patches@sourceware.org'" Date: Wed, 16 Sep 2009 20:35:00 -0000 Subject: RE: Another proposal for frontends and queries. Message-ID: References: <20090914140910.GD8327@adacore.com> In-Reply-To: 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/msg00529.txt.bz2 =20 > -----Original Message----- > From: Tom Tromey [mailto:tromey@redhat.com]=20 > Sent: Wednesday, September 16, 2009 4:20 PM > To: Marc Khouzam > Cc: 'Joel Brobecker'; 'gdb-patches@sourceware.org' > Subject: Re: Another proposal for frontends and queries. >=20 > >>>>> "Marc" =3D=3D Marc Khouzam writes: >=20 > Marc> Having a switch on a command turns out to be=20 > insufficient because > Marc> there is not a 1-1 mapping between queries and=20 > commands. Currently > Marc> PRecord will query before changing memory, but this=20 > will be triggered > Marc> by any of: > Marc> -var-assign a 8 > Marc> p a=3D8 > Marc> set var a=3D8 > Marc> and others. >=20 > I am curious about something here. If you know the answers=20 > offhand, I'd > appreciate it. Otherwise I guess I'll look into it at some=20 > later point. >=20 > Does the record code also query when making an inferior function call > from an expression? It seems like it ought to, as such a call might > modify the inferior's state. I gave it a go and I found that yes, when calling an inferior function PRecord will prompt. =20 > Also, if an expression does multiple assignments, are there multiple > queries or just one? It seems like there should just be one. I tried: (gdb) p foo(3)+foo(4) and got a single query. Pretty nice. Marc