From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7609 invoked by alias); 16 Sep 2009 20:20:04 -0000 Received: (qmail 7599 invoked by uid 22791); 16 Sep 2009 20:20:03 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Sep 2009 20:19:59 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8GKJWvC025194; Wed, 16 Sep 2009 16:19:32 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8GKJVvc015442; Wed, 16 Sep 2009 16:19:31 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n8GKJUmx009795; Wed, 16 Sep 2009 16:19:31 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 1CA2737819C; Wed, 16 Sep 2009 14:19:30 -0600 (MDT) From: Tom Tromey To: Marc Khouzam Cc: "'Joel Brobecker'" , "'gdb-patches\@sourceware.org'" Subject: Re: Another proposal for frontends and queries. References: <20090914140910.GD8327@adacore.com> Reply-To: tromey@redhat.com Date: Wed, 16 Sep 2009 20:20:00 -0000 In-Reply-To: (Marc Khouzam's message of "Mon, 14 Sep 2009 10:27:08 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00526.txt.bz2 >>>>> "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. Also, if an expression does multiple assignments, are there multiple queries or just one? It seems like there should just be one. Tom