From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28262 invoked by alias); 7 Jul 2005 00:33:17 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 28251 invoked by uid 22791); 7 Jul 2005 00:33:14 -0000 Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 07 Jul 2005 00:33:14 +0000 Received: from farnswood.snap.net.nz (p152-tnt1.snap.net.nz [202.124.110.152]) by viper.snap.net.nz (Postfix) with ESMTP id E26185E3123; Thu, 7 Jul 2005 12:33:10 +1200 (NZST) Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 1BA1762A99; Thu, 7 Jul 2005 01:34:29 +0100 (BST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17100.30869.182054.443090@farnswood.snap.net.nz> Date: Thu, 07 Jul 2005 00:33:00 -0000 To: Bob Rossi Cc: Daniel Jacobowitz , gdb@sources.redhat.com Subject: Re: Queries in MI In-Reply-To: <20050706234612.GA18932@white> References: <20050706131413.GA24446@nevyn.them.org> <17100.19602.527071.624058@farnswood.snap.net.nz> <20050706212845.GA9131@nevyn.them.org> <17100.24710.842746.668947@farnswood.snap.net.nz> <20050706234612.GA18932@white> X-SW-Source: 2005-07/txt/msg00063.txt.bz2 > > If MI becomes properly asynchronous then I'm not sure how to do it. > > Perhaps the the frontend could prepend a token on the input, just as MI > > already uses tokens for output. > > Is it possible that FE's would want to automate the response to a query? > If so, does it make sense to put the query in the MI protocol? > > For instance, a FE could implement a way to allow users to set a > breakpoint in the source window by class name/function. Then, when the > FE tries to automate the command, GDB could respond with a query, > the FE could present the user with choices (in dialog) and then send the > response back. > > With the current response, the FE has no way of doing this. I'm not sure what you're suggesting, but Emacs will always want to allow CLI input through the GUD buffer which, for example, will be forwarded to GDB as: -interpreter-exec console "b asdf" I guess the choices for the query could be presented as a dialog box but I don't know how that changes things. Perhap, if as Daiel suggests, after a query GDB will only accept the response to that query, the old behaviour can be re-instated. Nick