From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20035 invoked by alias); 17 Sep 2009 00:16:16 -0000 Received: (qmail 20027 invoked by uid 22791); 17 Sep 2009 00:16:16 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 17 Sep 2009 00:16:10 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.67.167]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 54C5B57012; Wed, 16 Sep 2009 17:16:07 -0700 (PDT) Received: from [10.20.94.141] (msnyder-server.eng.vmware.com [10.20.94.141]) by mailhost2.vmware.com (Postfix) with ESMTP id 349378E84F; Wed, 16 Sep 2009 17:16:07 -0700 (PDT) Message-ID: <4AB17FC0.2050003@vmware.com> Date: Thu, 17 Sep 2009 00:16:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: "tromey@redhat.com" CC: Marc Khouzam , 'Joel Brobecker' , "'gdb-patches@sourceware.org'" Subject: Re: Another proposal for frontends and queries. References: <20090914140910.GD8327@adacore.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00551.txt.bz2 Tom Tromey wrote: >>>>>> "Marc" == Marc Khouzam writes: > > Marc> Having a switch on a command turns out to be insufficient because > Marc> there is not a 1-1 mapping between queries and commands. Currently > Marc> PRecord will query before changing memory, but this will be triggered > Marc> by any of: > Marc> -var-assign a 8 > Marc> p a=8 > Marc> set var a=8 > Marc> and others. > > I am curious about something here. If you know the answers offhand, I'd > appreciate it. Otherwise I guess I'll look into it at some later point. > > 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. It will, because the set-up for the call will involve changing the stack pointer register as well as the eip. The register changes will get a prompt, even if nothing gets written to the stack (memory). > Also, if an expression does multiple assignments, are there multiple > queries or just one? It seems like there should just be one. At a guess, the first "no" will end it (because it will error out), but you might have to say "yes" repeatedly. I haven't tried it.