From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20864 invoked by alias); 20 Jun 2008 02:49:49 -0000 Received: (qmail 20856 invoked by uid 22791); 20 Jun 2008 02:49:48 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 20 Jun 2008 02:49:16 +0000 Received: from kahikatea.snap.net.nz (137.62.255.123.dynamic.snap.net.nz [123.255.62.137]) by viper.snap.net.nz (Postfix) with ESMTP id 061B43DA150; Fri, 20 Jun 2008 14:49:09 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 66FFB8FC6D; Fri, 20 Jun 2008 14:48:54 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18523.6804.971901.408892@kahikatea.snap.net.nz> Date: Fri, 20 Jun 2008 06:53:00 -0000 To: Vladimir Prus Cc: gdb-patches@sources.redhat.com Subject: Re: [MI/RFC] Emit ^running via observer. In-Reply-To: <200806140108.24047.vladimir@codesourcery.com> References: <200806140108.24047.vladimir@codesourcery.com> X-Mailer: VM 7.19 under Emacs 22.2.50.2 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: 2008-06/txt/msg00358.txt.bz2 > This patch fixes an issue in MI code that was present since at least 1999. > We output ^running before even trying to resume the target, not to mention > making sure the target is resumed. So, if resuming fails, we'd get ^running, > followed by ^error, and I don't really know if current frontends will like > it at all. > > Now that we have observer for resume, and that observer is called after > target is resumed, we can emit ^running from that observer. The immediate > bonus is that ^running is now emitted for every command that resumes the > inferior, even for CLI commands. Another (unexpected) bonus, is that since ^^^^^^^^^^^^^^^^^^^^^ > now ^running and *running is output in a single place, we can produce them > in consistent order. I would like to see this patch committed! I've not tested it but I should have Emacs working with MI shortly and then I can regularly test this and other changes. -- Nick http://www.inet.net.nz/~nickrob