From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10891 invoked by alias); 18 Nov 2005 13:37:08 -0000 Received: (qmail 10883 invoked by uid 22791); 18 Nov 2005 13:37:06 -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; Fri, 18 Nov 2005 13:37:06 +0000 Received: from kahikatea.snap.net.nz (p104-tnt1.snap.net.nz [202.124.110.104]) by viper.snap.net.nz (Postfix) with ESMTP id F23FD6B7197; Sat, 19 Nov 2005 02:37:01 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 3FFB98422; Sat, 19 Nov 2005 02:37:10 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17277.55557.315710.118933@kahikatea.snap.net.nz> Date: Fri, 18 Nov 2005 13:37:00 -0000 To: Vladimir Prus Cc: gdb@sources.redhat.com Subject: MI: is target running In-Reply-To: References: 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/msg00381.txt.bz2 > 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. > 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. 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. Nick