From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27543 invoked by alias); 18 Nov 2005 14:44:14 -0000 Received: (qmail 27536 invoked by uid 22791); 18 Nov 2005 14:44:12 -0000 Received: from zigzag.lvk.cs.msu.su (HELO zigzag.lvk.cs.msu.su) (158.250.17.23) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 18 Nov 2005 14:44:12 +0000 Received: from Debian-exim by zigzag.lvk.cs.msu.su with spam-scanned (Exim 4.50) id 1Ed7TE-0003L3-QE for gdb@sources.redhat.com; Fri, 18 Nov 2005 17:44:10 +0300 Received: from zigzag.lvk.cs.msu.su ([158.250.17.23]) by zigzag.lvk.cs.msu.su with esmtp (Exim 4.50) id 1Ed7TB-0003KA-EA; Fri, 18 Nov 2005 17:44:05 +0300 From: Vladimir Prus To: Nick Roberts Subject: Re: MI: is target running User-Agent: KMail/1.7.2 References: <17277.55557.315710.118933@kahikatea.snap.net.nz> In-Reply-To: <17277.55557.315710.118933@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Disposition: inline X-UID: 8131 X-Length: 2009 Date: Fri, 18 Nov 2005 14:44:00 -0000 Cc: gdb@sources.redhat.com Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200511181744.05052.ghost@cs.msu.su> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00386.txt.bz2 On Friday 18 November 2005 16:37, you wrote: > > So, for "run" command embedded in gdb macro invoked via "interpreter > > console", there's no "^running" in the output. So, GUI can't detect that > > the target is running. > > [Generally myrun is referred a "user-defined command"] > > I don't quite understand your example as this is also true if you just do: > > interpreter console run > > i.e. it is a consequence of using CLI within MI and not just one of > invoking a user-defined command. Yes, but for plain old run I can just compare command being run with "run" literal. For user-defined-command, it's simply not possible. > > Is this a defect? Should not "^running" be emitted in all cases when > > target starts running? > > Yes, I think it should. I have made changes to GDB, based on Apple's work, > that makes GDB run asynchronously. This means that the state of the > inferior is reported regardless of whether the command executed was from MI > or CLI. Cool. But what does "asynchronously" means, exactly? > After the release, I will make a branch for these changes and hope that > they can be merged in to mainline for the release after. I will welcome > any help with that effort. I hope to check that branch out. - Volodya