From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29715 invoked by alias); 10 Aug 2005 00:41:43 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29678 invoked by uid 22791); 10 Aug 2005 00:41:34 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 10 Aug 2005 00:41:34 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1E2eeu-0001At-Ts; Tue, 09 Aug 2005 20:41:29 -0400 Date: Wed, 10 Aug 2005 00:42:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii , Jim Ingham , gdb-patches@sources.redhat.com Subject: Re: RFC: MI output during program execution Message-ID: <20050810004128.GA4264@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , Jim Ingham , gdb-patches@sources.redhat.com References: <1123605445.30442.ezmlm@sources.redhat.com> <20050809181311.GB3012@white> <20050809223421.GB3557@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050809223421.GB3557@white> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-08/txt/msg00112.txt.bz2 On Tue, Aug 09, 2005 at 06:34:21PM -0400, Bob Rossi wrote: > However, in the meantime, I think it's possible to query the state of > GDB at any moment. So, if you allow the user to enter a command via > -interpreter-exec console, you could then follow that command up with > other MI commands to sync the state of GDB with the state of the FE. But we haven't got all the relevant query commands, I think. And I haven't a clue what the full set would be. Rather than adding them, investing effort in getting the async approach going makes more sense to me. As Jim's pointed out, you can need this any time you hit a breakpoint, if the user has set commands on it. Keeping track of this in the FE is going to be tricky. Also, if you're presenting a real console window and you have to do a half-dozen queries after every command to keep the UI up to date, that's probably going to be visibly slow. -- Daniel Jacobowitz CodeSourcery, LLC